html variation
Hi,
I'm trying to edit the html variation file to justify(text-align: justify) articles posted on wordpress. Since the posted article doesn't have p attribute, the block option isn't working.
I add the following to the script and it seems to work with paragraphs with no links in, but if a paragraph has a link (<a href.......), the anchor text is displayed on a new line because "<p style="text-align: justify;">" is added before the anchor text.
[Paragraph-2]
max length=0
justify=<p style="text-align: justify;">[...]</p>
The output looks like this:
<p style="text-align: justify;">text text text text text text text text text text </p><a href="http://www.site.com/"><p style="text-align: justify;">ANCHOR TEXT</p></a> <p style="text-align: justify;">text2 text2 text2 text2</p><a href="http://site.com"></p>ANCHOR TEXT2</p></a> text text text text text text text text text.
The Correct output should be:
<p style="text-align: justify;">text text text text text text text text text text <a href="http://www.site.com/">ANCHOR TEXT</a>text2 text2 text2 text2 <a href="http://site.com">ANCHOR TEXT2</a> text text text text text text text text text.</p>
Any idea how to fix this?
I'm trying to edit the html variation file to justify(text-align: justify) articles posted on wordpress. Since the posted article doesn't have p attribute, the block option isn't working.
I add the following to the script and it seems to work with paragraphs with no links in, but if a paragraph has a link (<a href.......), the anchor text is displayed on a new line because "<p style="text-align: justify;">" is added before the anchor text.
[Paragraph-2]
max length=0
justify=<p style="text-align: justify;">[...]</p>
The output looks like this:
<p style="text-align: justify;">text text text text text text text text text text </p><a href="http://www.site.com/"><p style="text-align: justify;">ANCHOR TEXT</p></a> <p style="text-align: justify;">text2 text2 text2 text2</p><a href="http://site.com"></p>ANCHOR TEXT2</p></a> text text text text text text text text text.
The Correct output should be:
<p style="text-align: justify;">text text text text text text text text text text <a href="http://www.site.com/">ANCHOR TEXT</a>text2 text2 text2 text2 <a href="http://site.com">ANCHOR TEXT2</a> text text text text text text text text text.</p>
Any idea how to fix this?
Comments