Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 20. október 2026

Rozdiely pre libcfg+/Attic/db-html2man medzi verziami 1.4 a 1.5

verzia 1.4, 2002/09/02 15:54:38 verzia 1.5, 2002/09/02 16:12:49
Riadok 1 
Riadok 1 
 #!/usr/bin/awk  #!/usr/bin/awk
   
   function remove_lines(str)
   {
           while (getline) {
                   if (sub(str, "")) { print; break; }
           }
           return;
   }
   
 function handle_table(str)  function handle_table(str)
 {  {
         entries = 0;          entries = 0;
Riadok 9  function handle_table(str)
Riadok 17  function handle_table(str)
         while (getline) {          while (getline) {
                 # end of table                  # end of table
                 if (sub(/<\/table>/, "</variablelist>")) { return; }                  if (sub(/<\/table>/, "</variablelist>")) { return; }
   
                   if ($0 ~ /<thead>/) {
                           remove_lines("^.*<\/thead>");
                   }
                   sub(/<tgroup[^>]*>/, "");
                   sub(/<\/tgroup>/, "");
                   sub(/<tbody>/, "");
                   sub(/<\/tbody>/, "");
   
                 if (sub(/<row>/, "<varlistentry>")) { entries = 0; }                  if (sub(/<row>/, "<varlistentry>")) { entries = 0; }
                 if (sub(/<\/row>/, "</varlistentry>")) {                  if (sub(/<\/row>/, "</varlistentry>")) {
Riadok 61  function handle_table(str)
Riadok 77  function handle_table(str)
         next;          next;
 }  }
   
 # remove "<sect1 .*</title>"  # remove "<sect1 .*</title>" -- MUST be on begin of the line!
 /<sect1/ {  /<sect1/ {
         while (getline) {          remove_lines("^.*<\/title>");
                 if (sub(/^.*<\/title>/, "")) { print; break; }  
         }  
         next;          next;
 }  }
   

Legend:
Odstranené z verzie1.4  
zmenené riadky
  Pridané vo verzii1.5

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok