texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/makeinfo cmds.c,1.18,1.19


From: Karl Berry <address@hidden>
Subject: texinfo/makeinfo cmds.c,1.18,1.19
Date: Thu, 25 Sep 2003 18:06:54 +0000

Update of /cvsroot/texinfo/texinfo/makeinfo
In directory subversions:/tmp/cvs-serv27411

Modified Files:
        cmds.c 
Log Message:
(cm_strong): warn if argument is exactly "Note:",
since that conflicts with Info usage.  Suggestion
from rms.


Index: cmds.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/makeinfo/cmds.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** cmds.c      21 Apr 2003 01:02:39 -0000      1.18
--- cmds.c      25 Sep 2003 18:06:52 -0000      1.19
***************
*** 833,838 ****
  
  void
! cm_strong (arg, position)
!      int arg, position;
  {
    if (xml)
--- 833,838 ----
  
  void
! cm_strong (arg, start_pos, end_pos)
!      int arg, start_pos, end_pos;
  {
    if (xml)
***************
*** 842,845 ****
--- 842,852 ----
    else
      add_char ('*');
+   
+   if (arg == END
+       && end_pos - start_pos >= 6
+       && strncmp (output_paragraph + start_pos, "*Note:*", 7) == 0)
+     /* Translators: "Note:" is literal here and should not be
+        translated.  @strong{Nota}, say, does not cause the problem.  */
+     warning (_("@strong{Note:} produces incorrect Info output; reword"));
  }
  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]