Details
Description
If you in the backend editor ( in a richtext field) creates a list ( ordered or unordered) and then hit [shift]+[enter], you may split the item ( which is a paragraph ) into multiple lines.
This will look just fine in the editor (image1), but it will be not be saved correctly.
The saved xml will look like this:
<?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"> <itemizedlist> <listitem> <para>item1 line1item1 line2</para> </listitem> <listitem> <para>item2</para> </listitem> </itemizedlist> </section>
But I think it should be saved like this:
<?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"> <itemizedlist> <listitem> <para><literallayout class="normal">item1 line1 item1 line2</literallayout></para> </listitem> <listitem> <para>item2</para> </listitem> </itemizedlist> </section>
In short, the '<literallayout class="normal">' tag is missing
Attachments
Issue Links
- discovered while testing
-
EZP-24968 RichText: conversion and validation from Legacy ezxml involving temporary paragraphs
- Closed