Thread: LRF output
View Single Post
Old 07-13-2007, 01:19 PM   #262
bnocturnal
Junior Member
bnocturnal began at the beginning.
 
bnocturnal's Avatar
 
Posts: 3
Karma: 10
Join Date: Jul 2007
Device: Sony PRS500
Question html code in block quotes

Hello,

First off, Thanks for the great program!

I seem to have run into a bug... not sure if it is by design, though..

I am converting an ebook (Thinking in Java, from http://mindvew.net), and have run into an issue with html blockquotes.

This book uses the block quotes for code samples, and while html2lrf does "block" the text, it doesn't seem to convert any of the html....

what should be this:

Code:
 monitor.expect(new String[] {
      "1: n1.i: 9, n2.i: 47",
      "2: n1.i: 47, n2.i: 47",
      "3: n1.i: 27, n2.i: 27"
    });
comes out like this:

Code:
    monitor.expect(<font color="#0000ff">new</font> String[] {
      <font color="#004488">"1: n1.i: 9, n2.i: 47"</font>,
      <font color="#004488">"2: n1.i: 47, n2.i: 47"</font>,
      <font color="#004488">"3: n1.i: 27, n2.i: 27"</font>
    });

I suppose i could come up with some regex to remove the "font" tags...

Dave
bnocturnal is offline   Reply With Quote