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
F19511700: D17772.id.diff
Mon, Jan 12, 6:50 AM
F19504493: D17772.diff
Fri, Jan 9, 5:14 AM
F19504437: D17772.diff
Fri, Jan 9, 5:10 AM
F19282452: D17772.id42735.diff
Tue, Dec 23, 4:16 AM
F19125265: D17772.diff
Dec 10 2025, 1:44 AM
F19125251: D17772.diff
Dec 10 2025, 1:42 AM
F19043625: D17772.id.diff
Nov 26 2025, 11:39 PM
F19035617: D17772.diff
Nov 25 2025, 5:25 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.