[gtk-doc] Fix gtkdoc-fixxref.in with strange 2html.vim version



commit ae73c85e3d334501c2948dc6330ec9e0c1e4d044
Author: David Nečas <yeti physics muni cz>
Date:   Thu Aug 22 22:23:02 2013 +0200

    Fix gtkdoc-fixxref.in with strange 2html.vim version
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706438

 gtkdoc-fixxref.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in
index 569200b..3bb47e2 100755
--- a/gtkdoc-fixxref.in
+++ b/gtkdoc-fixxref.in
@@ -472,7 +472,7 @@ sub HighlightSourceVim {
     close (NEWFILE);
 
     # format source
-    system "echo 'let html_number_lines=0|let html_use_css=1|let use_xhtml=1|syn on|e $temp_source_file|run! 
syntax/2html.vim|w! $temp_source_file.html|qa!' | @HIGHLIGHT@ -n -e -u NONE -T xterm >/dev/null";
+    system "echo 'let html_number_lines=0|let html_use_css=1|let html_use_xhtml=1|syn on|e 
$temp_source_file|run! syntax/2html.vim|w! $temp_source_file.html|qa!' | @HIGHLIGHT@ -n -e -u NONE -T xterm 
/dev/null";
 
     my $highlighted_source;
     {
@@ -481,7 +481,7 @@ sub HighlightSourceVim {
         $highlighted_source = <NEWFILE>;
         close (NEWFILE);
     }
-    $highlighted_source =~ s#.*<pre>\n##s;
+    $highlighted_source =~ s#.*<pre\b[^>]*>\n##s;
     $highlighted_source =~ s#</pre>.*##s;
 
     # need to rewrite the stylesheet classes


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