-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asciidoc: add cleanspaces option to remove extra spaces
Extra spaces are removed in no-wrap segments, so that the output conforms to English typography rules. This fixes GitHub #464
- Loading branch information
Showing
8 changed files
with
201 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Test Clean Spaces | ||
================= | ||
|
||
************************** | ||
This is a Sidebar block. | ||
This is a Sidebar block. | ||
This is a Sidebar block. | ||
This is a Sidebar block. | ||
- This is a Sidebar block. | ||
This is a Sidebar block. | ||
************************** | ||
|
||
<pathspec>...:: | ||
Files to add content from. Fileglobs (e.g. `*.c`) can | ||
be given to add all matching files. | ||
|
||
Some paragraph text. Some paragraph text. Some paragraph text. | ||
Some paragraph text. Some paragraph text. Some paragraph text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Test Clean Spaces | ||
================= | ||
|
||
************************** | ||
This is a Sidebar block. This is a Sidebar block. | ||
|
||
This is a Sidebar block. | ||
This is a Sidebar block. | ||
|
||
- This is a Sidebar block. This is a Sidebar block. | ||
************************** | ||
|
||
<pathspec>...:: | ||
Files to add content from. Fileglobs (e.g. `*.c`) can be given to add all matching files. | ||
|
||
Some paragraph text. Some paragraph text. Some paragraph text. Some paragraph text. Some paragraph text. Some paragraph text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# SOME DESCRIPTIVE TITLE | ||
# Copyright (C) YEAR Free Software Foundation, Inc. | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2024-02-28 21:46+0100\n" | ||
"PO-Revision-Date: 2024-02-28 21:47+0100\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#. type: Title = | ||
#: CleanSpaces.adoc:2 | ||
#, no-wrap | ||
msgid "Test Clean Spaces" | ||
msgstr "TEST CLEAN SPACES" | ||
|
||
#. type: delimited block * | ||
#: CleanSpaces.adoc:7 CleanSpaces.adoc:13 | ||
msgid "This is a Sidebar block. This is a Sidebar block." | ||
msgstr "THIS IS A SIDEBAR BLOCK. THIS IS A SIDEBAR BLOCK." | ||
|
||
#. type: delimited block * | ||
#: CleanSpaces.adoc:10 | ||
#, no-wrap | ||
msgid "" | ||
" This is a Sidebar block.\n" | ||
" This is a Sidebar block.\n" | ||
msgstr "" | ||
" THIS IS A SIDEBAR BLOCK.\n" | ||
" THIS IS A SIDEBAR BLOCK.\n" | ||
|
||
#. type: Labeled list | ||
#: CleanSpaces.adoc:15 | ||
#, no-wrap | ||
msgid "<pathspec>..." | ||
msgstr "<PATHSPEC>..." | ||
|
||
#. type: Plain text | ||
#: CleanSpaces.adoc:18 | ||
msgid "" | ||
"Files to add content from. Fileglobs (e.g. `*.c`) can be given to add all " | ||
"matching files." | ||
msgstr "" | ||
"FILES TO ADD CONTENT FROM. FILEGLOBS (E.G. `*.C`) CAN BE GIVEN TO ADD ALL " | ||
"MATCHING FILES." | ||
|
||
#. type: Plain text | ||
#: CleanSpaces.adoc:20 | ||
msgid "" | ||
"Some paragraph text. Some paragraph text. Some paragraph text. Some " | ||
"paragraph text. Some paragraph text. Some paragraph text." | ||
msgstr "" | ||
"SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME " | ||
"PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# SOME DESCRIPTIVE TITLE | ||
# Copyright (C) YEAR Free Software Foundation, Inc. | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2024-02-28 21:46+0100\n" | ||
"PO-Revision-Date: 2024-02-28 21:48+0100\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#. type: Title = | ||
#: CleanSpaces.adoc:2 | ||
#, no-wrap | ||
msgid "Test Clean Spaces" | ||
msgstr "" | ||
|
||
#. type: delimited block * | ||
#: CleanSpaces.adoc:7 CleanSpaces.adoc:13 | ||
msgid "This is a Sidebar block. This is a Sidebar block." | ||
msgstr "" | ||
|
||
#. type: delimited block * | ||
#: CleanSpaces.adoc:10 | ||
#, no-wrap | ||
msgid "" | ||
" This is a Sidebar block.\n" | ||
" This is a Sidebar block.\n" | ||
msgstr "" | ||
|
||
#. type: Labeled list | ||
#: CleanSpaces.adoc:15 | ||
#, no-wrap | ||
msgid "<pathspec>..." | ||
msgstr "" | ||
|
||
#. type: Plain text | ||
#: CleanSpaces.adoc:18 | ||
msgid "" | ||
"Files to add content from. Fileglobs (e.g. `*.c`) can be given to add all " | ||
"matching files." | ||
msgstr "" | ||
|
||
#. type: Plain text | ||
#: CleanSpaces.adoc:20 | ||
msgid "" | ||
"Some paragraph text. Some paragraph text. Some paragraph text. Some " | ||
"paragraph text. Some paragraph text. Some paragraph text." | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
TEST CLEAN SPACES | ||
================= | ||
|
||
************************** | ||
THIS IS A SIDEBAR BLOCK. THIS IS A SIDEBAR BLOCK. | ||
|
||
THIS IS A SIDEBAR BLOCK. | ||
THIS IS A SIDEBAR BLOCK. | ||
|
||
- THIS IS A SIDEBAR BLOCK. THIS IS A SIDEBAR BLOCK. | ||
************************** | ||
|
||
<PATHSPEC>...:: | ||
FILES TO ADD CONTENT FROM. FILEGLOBS (E.G. `*.C`) CAN BE GIVEN TO ADD ALL MATCHING FILES. | ||
|
||
SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. SOME PARAGRAPH TEXT. |