File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,6 @@ def wrap(txt, line_len = 76)
313
313
# Character class to be separated by a space when concatenating
314
314
# lines.
315
315
316
- SPACE_SEPARATED_LETTER_CLASS = /[\p {Nd}\p {Lc}\p {Pc}]/
316
+ SPACE_SEPARATED_LETTER_CLASS = /[\p {Nd}\p {Lc}\p {Pc}]|[!-~&& \W ] /
317
317
318
318
end
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ def accept_paragraph_br
257
257
end
258
258
259
259
def accept_paragraph_break
260
- assert_equal "\n <p>hello<br>world</p>\n " , @to . res . join
260
+ assert_equal "\n <p>hello<br> world</p>\n " , @to . res . join
261
261
end
262
262
263
263
def accept_paragraph_i
@@ -416,6 +416,18 @@ def test_accept_paragraph_newline
416
416
@to . start_accepting
417
417
@to . accept_paragraph para ( "#{ ohayo } \n " , "#{ sekai } \n " )
418
418
assert_equal "\n <p>#{ ohayo } #{ sekai } </p>\n " , @to . res . join
419
+
420
+ @to . start_accepting
421
+ @to . accept_paragraph para ( "+hello+\n " , "world\n " )
422
+ assert_equal "\n <p><code>hello</code> world</p>\n " , @to . res . join
423
+
424
+ @to . start_accepting
425
+ @to . accept_paragraph para ( "hello\n " , "+world+\n " )
426
+ assert_equal "\n <p>hello <code>world</code></p>\n " , @to . res . join
427
+
428
+ @to . start_accepting
429
+ @to . accept_paragraph para ( "+hello+\n " , "+world+\n " )
430
+ assert_equal "\n <p><code>hello</code> <code>world</code></p>\n " , @to . res . join
419
431
end
420
432
421
433
def test_accept_heading_output_decoration
You can’t perform that action at this time.
0 commit comments