]> mj.ucw.cz Git - libucw.git/commitdiff
doc. system: Escape hashes and underscores
authorMichal Vaner <vorner@ucw.cz>
Sun, 15 Feb 2009 11:02:44 +0000 (12:02 +0100)
committerMichal Vaner <vorner@ucw.cz>
Sun, 15 Feb 2009 11:02:44 +0000 (12:02 +0100)
They were not properly escaped in symbol list, asciidoc did something
odd to them.

build/doc-defs

index a7f77d1b0dd8e214a63ba9458dc3d84ee0240480..8e398250eadd2f37b6b4bdfcc48cfa5fd8bcc9ef 100755 (executable)
@@ -57,7 +57,7 @@ foreach( sort { ( $groups{$a->[2]} <=> $groups{$b->[2]} ) or ( $a->[3] cmp $b->[
        $file = $dircp."/".$file;
        $file =~ s/^\///;
        $file =~ s/\.[^.]+$//;
-       $text =~ s/(\.\.\.|\*|')/\\$1/g;
+       $text =~ s/(\.\.\.|\*|'|#|_)/\\$1/g;
        print OUT "<<$file:$anchor,`$name`>>:: `$text`\n";
 }