Page MenuHomePhabricator

In Remarkup, prevent "%%%" on a line from self-terminating the literal block
ClosedPublic

Authored by epriestley on Apr 23 2017, 1:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 29, 1:33 AM
Unknown Object (File)
Thu, Jan 23, 8:06 AM
Unknown Object (File)
Thu, Jan 23, 5:35 AM
Unknown Object (File)
Tue, Jan 21, 12:40 PM
Unknown Object (File)
Sat, Jan 4, 3:10 AM
Unknown Object (File)
Fri, Jan 3, 12:55 AM
Unknown Object (File)
Dec 31 2024, 6:45 PM
Unknown Object (File)
Dec 22 2024, 8:21 PM
Subscribers
None

Details

Summary

Fixes T12621. Currently, %%% on a line by itself can both start and terminate a literal block. This is silly and presumably not what anyone ever intends.

Instead, if %%% started a block, don't let it terminate the block.

Test Plan
  • Added a failing test.
  • Made it pass.

Screen Shot 2017-04-23 at 5.56.18 AM.png (489×440 px, 28 KB)

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 23 2017, 6:20 PM
This revision was automatically updated to reflect the committed changes.