Skip to content

Small change to make it XHTML (XML) compatible. #15

Description

@AlexisWilke

There is a small change to make the paragraph compatible with XHTML. That way I can further parse the output with an XML parser. If the paragraph is empty, then nothing will happen so we can immediately write <p/> (if you'd rather, you could write <p></p>, but either way should work in any modern browser.)

diff ophir.php.1 ophir.php
157c157,162
<             $html .= "\n<p>";
---
>             if($xml->isEmptyElement) {
>               $html .= "\n<p/>";
>             }
>             else {
>               $html .= "\n<p>";
>             }

Also the <br/> tag needs a slash so we can do this in the translation table.

    $translation_table['text:line-break'] = 'br/';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions