From 5f79a66ed64e9b0cc326e467dcb17239f1596fcc Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 16 Apr 2021 22:13:29 +0200 Subject: JATS writer: reduce unnecessary use of

elements for wrapping The `

` element is used for wrapping in cases were the contents would otherwise not be allowed in a certain context. Unnecessary wrapping is avoided, especially around quotes (`` elements). Closes: #7227 --- test/writer.jats_articleauthoring | 88 ++++++++++++++++++--------------------- 1 file changed, 40 insertions(+), 48 deletions(-) (limited to 'test/writer.jats_articleauthoring') diff --git a/test/writer.jats_articleauthoring b/test/writer.jats_articleauthoring index 956a30faa..59485a114 100644 --- a/test/writer.jats_articleauthoring +++ b/test/writer.jats_articleauthoring @@ -67,43 +67,39 @@ Gruber’s markdown test suite.

Block Quotes

E-mail style:

-

- -

This is a block quote. It is pretty short.

- -

-

- -

Code in a block quote:

-

- sub status { + +

This is a block quote. It is pretty short.

+ + +

Code in a block quote:

+

+ sub status { print "working"; } -

-

A list:

-

- - -

item one

- - -

item two

-
- -

-

Nested block quotes:

-

- -

nested

-
-

-

- -

nested

- -

- -

+

+

A list:

+

+ + +

item one

+ + +

item two

+
+ +

+

Nested block quotes:

+

+ +

nested

+ +

+

+ +

nested

+ +

+

This should not be a block quote: 2 > 1.

And a following paragraph.

@@ -817,12 +813,10 @@ These should not be escaped: \$ \\ \> \[ \{

An e-mail address: nobody@nowhere.net

-

- -

Blockquoted: - http://example.com/

- -

+ +

Blockquoted: + http://example.com/

+

Auto-links should not occur here: <http://example.com/>

or here: <http://example.com/> @@ -860,13 +854,11 @@ These should not be escaped: \$ \\ \> \[ \{ and ] verbatim characters, as well as [bracketed text].

-

- -

Notes can go in quotes. -

In quote.

-

- -

+ +

Notes can go in quotes. +

In quote.

+

+

And in list items. -- cgit v1.2.3