BlueScr33n
Instructor
Initially what sounded fairly easy has me stumped. The type setting program I'm using is able to export HTML with in-line css formatting attributes.
Everything comes through fine until it's opened in the HTML editor I'm forced to use. Because of a per-line character length limit, the program forces a break in the HTML regardless of whether it's interrupting a tag or a word.
These breaks have resulted in a space appearing within words, so the HTML output c ould look a bit bro ken to those tr ying to rea d it.
My question is, using Perl, how would I break a line only if I'm not in the middle of a word or HTML tag.
If the 1024th character is in the middle of a word or tag, how do I "go back" to the previous best break location?
As of now, I'm not even sure what to google for, so any help would be greatly appreciated.
- Thomas
Everything comes through fine until it's opened in the HTML editor I'm forced to use. Because of a per-line character length limit, the program forces a break in the HTML regardless of whether it's interrupting a tag or a word.
These breaks have resulted in a space appearing within words, so the HTML output c ould look a bit bro ken to those tr ying to rea d it.
My question is, using Perl, how would I break a line only if I'm not in the middle of a word or HTML tag.
If the 1024th character is in the middle of a word or tag, how do I "go back" to the previous best break location?
As of now, I'm not even sure what to google for, so any help would be greatly appreciated.
- Thomas