Skip to content

Commit

Permalink
EZP-29595: ezxmltext -> richtext conversion : <header> inside <paragr…
Browse files Browse the repository at this point in the history
…aph> (ezsystems#73)
  • Loading branch information
vidarl committed Sep 21, 2018
1 parent d9ba403 commit dbae354
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/FieldType/XmlText/Converter/ExpandingToRichText.php
Expand Up @@ -32,6 +32,7 @@ class ExpandingToRichText extends Expanding
),
'table' => array(),
'literal' => array(),
'header' => array(),
);

/**
Expand Down
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<section
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"
xmlns:image="http://ez.no/namespaces/ezpublish3/image/"
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/">
<paragraph>foobar1
<header level="5">Welcome1</header></paragraph>
<paragraph><header level="5">Welcome2</header>
foobar2</paragraph>
<table>
<tr>
<td>
<paragraph>
<header level="5">Welcome3</header>
</paragraph>
</td>
</tr>
</table>
</section>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" version="5.0-variant ezpublish-1.0">
<para>foobar1
</para>
<title ezxhtml:level="2">Welcome1</title>
<title ezxhtml:level="2">Welcome2</title>
<para>
foobar2</para>
<informaltable>
<tbody>
<tr>
<td>
<title ezxhtml:level="2">Welcome3</title>
</td>
</tr>
</tbody>
</informaltable>
</section>

0 comments on commit dbae354

Please sign in to comment.