LetMeR00t / TA-thehive-cortex

Technical add-on for Splunk related to TheHive/Cortex from TheHive project
GNU Lesser General Public License v3.0
47 stars 11 forks source link

[BUG] Introduce a newline before adding markdown table #76

Closed kwizzz closed 7 months ago

kwizzz commented 7 months ago

Request Type

Bug

Work Environment

v3.1 Queen

Problem Description

When choosing "Append sanitized results" to add a markdown table of the Splunk search results table, the string "Raw events" gets inserted between original description text and the results table.

If description itself is already a markdown table, then appending the other auto-generated markdown table w/o newlines between them, messes up the table rendering.

Current situation (missing newlines):

|f1|f2|f3|
|-|-|-|
|fields|from|description|
Raw events
|f1|f2|f3|f4|
|-|-|-|-|
|fields|from|auto-generated|table|

Proposed solution:

|f1|f2|f3|
|-|-|-|
|fields|from|description|

Raw events

|f1|f2|f3|f4|
|-|-|-|-|
|fields|from|auto-generated|table|
LetMeR00t commented 7 months ago

Hello @kwizzz , Same for this one, a fix was done and will be available soon. Thank you for this submission