From fd45e4381ceeaaf9f12395b4e640133027e2ac48 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Thu, 23 Mar 2023 16:57:03 -0400 Subject: [PATCH] Add a test org-mode document that shows backslashes before a line break create an explicit line break. This line break appears in the output (for example a
in HTML) as opposed to the line breaks in paragraphs syntactically that get reduced to a single space on the same line. --- org_mode_samples/paragraphs/Makefile | 23 +++++++++++++++++++ .../paragraph_with_backslash_line_breaks.org | 7 ++++++ 2 files changed, 30 insertions(+) create mode 100644 org_mode_samples/paragraphs/Makefile create mode 100644 org_mode_samples/paragraphs/paragraph_with_backslash_line_breaks.org diff --git a/org_mode_samples/paragraphs/Makefile b/org_mode_samples/paragraphs/Makefile new file mode 100644 index 0000000..c47a86c --- /dev/null +++ b/org_mode_samples/paragraphs/Makefile @@ -0,0 +1,23 @@ +SHELL := bash +.ONESHELL: +.SHELLFLAGS := -eu -o pipefail -c +.DELETE_ON_ERROR: +MAKEFLAGS += --warn-undefined-variables +MAKEFLAGS += --no-builtin-rules +SRCFILES := $(wildcard *.org) +OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) + +ifeq ($(origin .RECIPEPREFIX), undefined) + $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) +endif +.RECIPEPREFIX = > + +.PHONY: all +all: $(OUTFILES) + +.PHONY: clean +clean: +> rm -rf $(OUTFILES) + +%.tree.txt: %.org ../common.el ../dump_org_ast.bash +> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/paragraphs/paragraph_with_backslash_line_breaks.org b/org_mode_samples/paragraphs/paragraph_with_backslash_line_breaks.org new file mode 100644 index 0000000..12ce1b7 --- /dev/null +++ b/org_mode_samples/paragraphs/paragraph_with_backslash_line_breaks.org @@ -0,0 +1,7 @@ +This is a paragraph + +This is another paragraph +This is a second line in that paragraph + +This is a third paragraph \\ +This is a second line in that paragraph