You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using GHR with options keepUnassigned and keepBlockTags, every time I run the plugin, a newline is added below the content, but above the 'endbuild' comment.
This is very similar to #42 but here the newline is getting added before the closing comment, rather than below.
By the way, I tried debugging this issue, and what I noticed is that because during this particular run of the plugin, the icon block didn't have any matching task in the config and therefore no replacements, the Block class is returning originalContent, and since it already has a newline, joining that with the beginTag and the endTag is what is adding extra linefeeds. I was able to fix this locally by changing:
When using GHR with options
keepUnassigned
andkeepBlockTags
, every time I run the plugin, a newline is added below the content, but above the 'endbuild' comment.For example:
After a few runs, I get this:
This is very similar to #42 but here the newline is getting added before the closing comment, rather than below.
By the way, I tried debugging this issue, and what I noticed is that because during this particular run of the plugin, the
icon
block didn't have any matching task in the config and therefore noreplacements
, the Block class is returningoriginalContent
, and since it already has a newline,join
ing that with thebeginTag
and theendTag
is what is adding extra linefeeds. I was able to fix this locally by changing:to:
The text was updated successfully, but these errors were encountered: