~ubuntu-branches/ubuntu/vivid/tidy/vivid-updates

« back to all changes in this revision

Viewing changes to src/tidylib.c

  • Committer: Bazaar Package Importer
  • Author(s): Jason Thomas
  • Date: 2005-10-20 10:26:07 UTC
  • mfrom: (0.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051020102607-ezcx81ght15xsjuj
Tags: 20051018-1
* New upstream release
  (closes: #333444)
* debian/tidy.install: added debian/tidy.conf /etc/tidy/
  (closes: #308883)
* debian/control: changed libtidy0 to libtidy-0.99-0
* updated manpage
  (closes: #224427)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  CVS Info :
7
7
 
8
8
    $Author: arnaud02 $ 
9
 
    $Date: 2005/04/08 09:11:13 $ 
10
 
    $Revision: 1.56 $ 
 
9
    $Date: 2005/08/03 18:07:01 $ 
 
10
    $Revision: 1.59 $ 
11
11
 
12
12
  Defines HTML Tidy API implemented by tidy library.
13
13
  
180
180
    impl->pOptCallback = pOptCallback;
181
181
    return yes;
182
182
  }
183
 
  return -EINVAL;
 
183
  return no;
184
184
}
185
185
 
186
186
 
612
612
    impl->mssgFilt = filt;
613
613
    return yes;
614
614
  }
615
 
  return -EINVAL;
 
615
  return no;
616
616
}
617
617
 
618
618
#if 0   /* Not yet */
869
869
 
870
870
    if ( content )
871
871
    {
872
 
        tidyBufAttach( &inbuf, (void*)content, tmbstrlen(content)+1 );
 
872
        tidyBufAttach( &inbuf, (byte*)content, tmbstrlen(content)+1 );
873
873
        in = BufferInput( doc, &inbuf, cfg( doc, TidyInCharEncoding ));
874
874
        status = tidyDocParseStream( doc, in );
875
875
        tidyBufDetach( &inbuf );
1222
1222
 
1223
1223
        /* drop style & class attributes and empty p, span elements */
1224
1224
        CleanWord2000( doc, &doc->root );
 
1225
        DropEmptyElements(doc, &doc->root);
1225
1226
    }
1226
1227
 
1227
1228
    /* replaces presentational markup by style rules */