Sfoglia il codice sorgente

doc/texipod: add rule to correctly interpret @ref{ANCHOR,XREF,SECTION_NAME,...}

This allows to name an internal reference in the POD/MAN output.
Stefano Sabatini 13 anni fa
parent
commit
c499d45c6b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      doc/texi2pod.pl

+ 1 - 0
doc/texi2pod.pl

@@ -361,6 +361,7 @@ sub postprocess
     s/\(?\@xref\{(?:[^\}]*)\}(?:[^.<]|(?:<[^<>]*>))*\.\)?//g;
     s/\s+\(\@pxref\{(?:[^\}]*)\}\)//g;
     s/;\s+\@pxref\{(?:[^\}]*)\}//g;
+    s/\@ref\{(?:[^,]*,)(?:[^,]*,)([^,\}]*).*\}/$1/g;
     s/\@ref\{([^\}]*)\}/$1/g;
     s/\@noindent\s*//g;
     s/\@refill//g;