Inserting line-break after specialized <br/> element

Post here questions and problems related to editing and publishing DITA content.
tmakita
Posts: 116
Joined: Fri Apr 08, 2011 7:58 am

Inserting line-break after specialized <br/> element

Post by tmakita »

Hi,

I introduced new "br" element by DITA specialization per user request. This will be useful for HTML output.

The specialization is here:

ah-dita/com.antennahouse.dita.dita13.doctypes/

https://github.com/AntennaHouse/ah-dita ... 3.doctypes

The "br" element displays fine in the oXygen Author visual editing mode. But my user want to insert line-break after this element. Is it possible by writing custom CSS framework? I attached current screenshot. (display: block; is not the desired result.)

https://1drv.ms/i/s!AkbL99fLhxKU30993Rm-S9YrQWrc

Regards,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Inserting line-break after specialized <br/> element

Post by Radu »

Hi,

Maybe use something like this:

Code: Select all

br:after{
content:"\A";
}
could be closer to what you want...

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
tmakita
Posts: 116
Joined: Fri Apr 08, 2011 7:58 am

Re: Inserting line-break after specialized <br/> element

Post by tmakita »

Hi Radu,

Thank you for your quick reply.
I will try it as soon as possible.

Here is one more question. Originally "br" is defined as EMPTY tag in DTD. But oXygen displays it using start tag icon and end tag icon.
Doesn't oXygen visual editing mode has simple empty tag icon?

Regards,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Inserting line-break after specialized <br/> element

Post by Radu »

Hi Toshihiko,

Most of the times empty elements allow attributes to be set on them. So the end user might place the caret inside the element (and might need those guiding triangles to do so) in order to edit attributes on the element.
If you want from the CSS you can hide the tags for br:

https://www.oxygenxml.com/doc/versions/ ... -tags.html

and add some custom image as static content on the element.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
tmakita
Posts: 116
Joined: Fri Apr 08, 2011 7:58 am

Re: Inserting line-break after specialized <br/> element

Post by tmakita »

Hi Radu,
and add some custom image as static content on the element.
Thank you for the nice idea!

Regards,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Post Reply