View Issue Details

IDProjectCategoryView StatusLast Update
5490Composrcorepublic2024-09-13 02:54
ReporterPDStig Assigned ToChris Graham  
PrioritynormalSeveritytrivial 
Status assignedResolutionopen 
Summary5490: comcode_to_text: Comcode not stripping newlines from inside tags when test indicates we expect it to
DescriptionThe comcode_to_text unit test uses newlines inside Comcode tags, e.g.

[box="box title"]
box contents
[/box]

...which results in a newline from strip_comcode since a newline exists after "box contents" and before the ending box tag.

Moving the end box tag to the same line as box contents results in the newline no longer being present.

My question is if strip_comcode is supposed to remove trailing newlines when they exist within Comcode tags, or not.
Additional Information@@ -17,4 +17,5 @@
 
 box contents
+
 
 **test bold**
@@ -23,4 +24,6 @@
 
 ***test highlight***
+
+
 
       blah
@@ -33,4 +36,6 @@
 
 bar
+
+
 
 (unnamed)
TagsNo tags attached.
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

PDStig

2024-09-13 02:54

administrator   ~9357

I believe this is a Windows issue with newline format

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

Date Modified Username Field Change
2023-12-07 20:43 PDStig New Issue
2023-12-07 20:43 PDStig Status Not Assigned => Assigned
2023-12-07 20:43 PDStig Assigned To => Chris Graham
2024-09-13 02:54 PDStig Note Added: 0009357