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
F15484154: D17772.id42753.diff
Wed, Apr 9, 4:43 PM
F15482824: D17772.id42735.diff
Wed, Apr 9, 8:20 AM
F15478627: D17772.diff
Tue, Apr 8, 1:23 AM
F15468298: D17772.id.diff
Thu, Apr 3, 10:57 PM
F15465290: D17772.diff
Wed, Apr 2, 4:53 PM
F15460587: D17772.id.diff
Tue, Apr 1, 12:12 AM
F15426945: D17772.diff
Sun, Mar 23, 11:46 AM
F15380285: D17772.diff
Mar 14 2025, 2:22 AM
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
Branch
literal2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 16664
Build 22224: Run Core Tests
Build 22223: arc lint + arc unit

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.