tmedwards / sugarcube-2

SugarCube is a free (gratis and libre) story format for Twine/Twee.
https://www.motoslave.net/sugarcube/2/
BSD 2-Clause "Simplified" License
177 stars 41 forks source link

Horizontal Rule fail when there are spaces on the right side #164

Closed Philip-Sutton closed 2 months ago

Philip-Sutton commented 2 years ago

Describe the bug. A clear and concise description of what the bug is.

To Reproduce: Steps to reproduce the behavior:

  1. Go to […]
  2. Click on […] Etc.

Expected behavior. It is a defining feature of the horizontal rule markup that the four dashes must begin on the left margin with no spaces, but if there is white space on the right hand side (even if there are no other visible characters) that rule fails.

I think that a right trim should be done before evaluating the four dashes.

Screenshots. image Project details.

Desktop details.

Additional context. (nothing to add)