Skip to main content
Needs Votes

Handle line return in comment

Related products:Infra Monitoring - Monitoring
  • November 24, 2022
  • 3 replies
  • 51 views

Hi,

When inputting a downtime comment with line returns, it appears like this :

 

IMO the <br/> tag should be interpreted. Eventually truncating the comment if there are too many lines.

I’m not sure that converting newline as <br> tag to store it in the DB is a good idea. Shouldn’t it be rather stored as ‘\n’ and converted when displayed?

3 replies

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • November 30, 2022
NewNeeds Votes

  • Author
  • December 1, 2022

Thx for the “Needs votes” tag but I wonder how displaying literal HTML tag could be an acceptable thing in a UI (except in some specific cases).


Forum|alt.badge.img+3
  • Steward *
  • March 22, 2024

More generally it could be interesting if line returns were handled also in STATUS INFORMATION of resources (by using <br> tag or at least by a parameter which allows more than one line).

While using “resource status” page it is not too annoying because we can get the EXTENDED STATUS INFORMATION to see the detail of each alert.

But when looking at event logs the EXTENDED STATUS INFORMATION are not accessible anymore and it is difficult to analyze events accurately after the fact