Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

Diff for scripts/shell/docbook/db-html2man between version 1.3 and 1.4

version 1.3, 2002/09/02 15:13:02 version 1.4, 2002/09/02 15:54:38
Line 4  function handle_table(str)
Line 4  function handle_table(str)
 {  {
         entries = 0;          entries = 0;
   
         # end of table  
         if (sub(/<\/table>/, "</variablelist>")) { return; }  
   
         sub(/<table[^>]*>/, "<variablelist>");          sub(/<table[^>]*>/, "<variablelist>");
         sub(  /<row>/,  "<varlistentry");          print;
         sub(/<\/row>/, "</varlistentry");          while (getline) {
                   # end of table
                   if (sub(/<\/table>/, "</variablelist>")) { return; }
   
                   if (sub(/<row>/, "<varlistentry>")) { entries = 0; }
                   if (sub(/<\/row>/, "</varlistentry>")) {
                           if (entries > 1)
                                   print "</listitem>";
                   }
                   if ($0 ~ /<entry>/) {
                           entries++;
                           if (entries == 1 )
                                   sub(/<entry>/, "<term>");
                           else {
                                   print "<listitem>";
                                   sub(/<entry>/, "<para>");
                           }
                   }
                   if ($0 ~ /<\/entry>/) {
                           if (entries == 1 )
                                   sub(/<\/entry>/, "</term>");
                           else {
                                   sub(/<\/entry>/, "</para>");
                           }
                   }
   
                   print;
           }
 }  }
   
 # multiline MAN: comment  # multiline MAN: comment
Line 45  function handle_table(str)
Line 69  function handle_table(str)
         next;          next;
 }  }
   
 #/<table / {  /<table / {
 #       handle_table($0);          handle_table($0);
 #       next;  }
 #}  
   
 # default: print line  # default: print line
 // {  // {
Line 56  function handle_table(str)
Line 79  function handle_table(str)
         print;          print;
 }  }
   
 # vim: ft=awk  # vim: ft=awk cindent

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top