• Resolved ramod8

    (@ramod8)


    Hi

    How can we preserve new lines in comments. When someone types a question with new lines, it displays that text without any new lines

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Arun Basil Lal

    (@arunbasillal)

    Hello,

    This is something that is handled by the theme and not part of the plugin. By default you should have comments with new lines.

    Are you seeing the same issue on the comments on other posts?

    Thread Starter ramod8

    (@ramod8)

    The newlines are being saved, but they are not visualised. You need to convert the newlines to <br> tags.

    I ended up using this styling rules to show the newlines

    /*Show newlines in comments*/
    .comment-content.ama-question-content, .comment-content.ama-answer-content {
    white-space: pre-line;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Line breaks in comments’ is closed to new replies.