JafSoft Support Forums  
  Products:
AscToHTM (text to HTML) / AscToPDF (text to PDF) / AscToRTF (text to RTF) / Detagger (HTML to text and markup removal) 

 
  Forum options:
Forum Index  Register  Login  Search  FAQ  Log Out
Member options:
My Profile  Inbox  Member List  Address Book  My Subscription  My Forums 
 
 

Note: Some forums require a login other than "Guest" in order to post messages and replies


eliminate page breaks <br>?

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums > [Product forums] > Detagger > eliminate page breaks <br>? Page: [1]
Login
Message << Older Topic   Newer Topic >
eliminate page breaks <br>? - 5/25/2006 4:25:14 PM   
jdove

 

Posts: 1
Joined: 5/25/2006
Status: offline
Is there a setting in Detagger that I can enable in order to get rid of page breaks:
 
<td class="body">Progress Report - The new patient is now registered<br>
      and you've created their policy record. The next<br>
      step is to create their patient account. This will<br>
      establish a guarantor for the patient, attach any<br>
      insurance policy(s) that may provide coverage for<br>
 
Thanks!
      John
Post #: 1
RE: eliminate page breaks <br>? - 5/25/2006 4:44:13 PM   
Jaf

 

Posts: 70
Joined: 2/1/2006
Status: offline
There isn't an explicit option for this, but you can pretty much achieve this effect by using the "Text Commands" feature.

To do this create a text file (e.g. "text_commands.inc") and in this place the single line

   replace_text string "<br>" by_string " "

Next, run Detagger and select the menu option

   Conversion Options -> Configuration files -> Text Commands file

and use the tab that comes up to locate the file you just created.

Now when you next run the conversion the Text Commands in the file you've identified are executed against the text before the main conversion takes place.  In this case all occurrences of "<br>" are replaced by a single space before the conversion is done, meaning the converter never sees these tags, and so never pays any attention to them.

If you save your options as a policy file when prompted to on exit from Detagger, you'll be able to reload these settings again next time you run the program.  On the

   Settings -> Use of policy files

menu option you can even make this the default each time you run the software.

This effectively removes all the <br> tags from your source.  However, this isn't selective, it will remove them from everywhere in your file.

I note that in the sample you quote the text is contained in a table.  Although the above approach will remove the line breaks caused by the <br> tags, you'll possibly find that the text is still formatted according to the width constraints generated by the table.

But that's another issue....


(in reply to jdove)
Post #: 2
Page:   [1]
All Forums > [Product forums] > Detagger > eliminate page breaks <br>? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts