• Hey all,

    I’ve had this problem for several years actually, and as I found a temporary fix, I never thought to ask anyone for a permanent solution.

    [ Moderator note: moved to Fixing WordPress. ]

    The issue I have is line breaks when certain characters are involved.

    My website is based on music, and in each post, I publish tracklists for music mixes. The issue I am having though, is when I use these brackets “[]”. I don’t have the issue with these brackets “()”.

    When using these brackets “[]”, line breaks fail, and I have to use the BR code to make a new line.

    For example:

    Here’s what I get when using the brackets without the BR code:

    01. Artist - Trackname [Remix]02. Artist - Trackname[Original]03. Artist - Trackname[Remix]

    Here’s what I get when using the brackets with the BR code:

    01. Artist - Trackname [Remix] <br>
    02. Artist - Trackname [Original] <br>
    03. Artist - Trackname [Remix] <br>

    Obviously, the BR code isn’t showing when the post is published, but I have to use that code to get the outcome I want.

    I’m only having this issue with those specific brackets. Ideally, I want the output to be the second example, without having to use BR.

    I hope I’ve explained it ok. Any help is appreciated.

    Many thanks

Viewing 1 replies (of 1 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    This should be structured using a HTML list. With the correct structure you will find there won’t be an issue.

    In this example you should use ‘numbered list’ structure. You can always use CSS to change the number format, for example you can achieve the ’01.’ format using ‘decimal-leading-zero’ the style.

Viewing 1 replies (of 1 total)
  • The topic ‘Line Break Issue’ is closed to new replies.