TiddlyWiki.org

Ticket #688 (new enhancement)

Opened 3 months ago

Last modified 3 months ago

ignore blank lines around headings

Reported by: FND Assigned to: JeremyRuston
Priority: minor Milestone: 2.5
Component: core Version:
Severity: low Keywords: formatting
Cc:

Description (Last modified by FND)

As discussed here, line breaks immediately preceding* a heading should be ignored.

Note: This is a subset of #335 which can likely be fixed using the code provided in the aforementioned thread.

* possibly also line breaks following a heading

Change History

22/06/08 20:16:25 changed by FND

cross-references: In addition to #335, this issue is closely related to #34 and #449.

22/06/08 20:20:52 changed by FND

  • description changed.

22/06/08 20:27:15 changed by kriomant

Temporary solution I use (add as plugin):

/***
This plugin prevents inserting line breaks before headings.
***/
// /%
for (var i = 0; i < config.formatters.length; i++) {
  var formatter = config.formatters[i];
  if (formatter.name == "heading") {
    formatter.match = "\\n+!{1,6}";
    break;
  }
}
// %/