git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] howto: Suppress indentation with tabs

From
DWDirk Wallenstein <halsmit@t-online.de>
Date
Jul 31, 2013, 16:54 UTC
Message-ID
<20130731165417.GB11219@bottich>
In-Reply-To
<cover.1375288760.git.halsmit@t-online.de>

The AsciiDoc files in the 'howto' folder are installed as documentation and AsciiDoc files are meant to be read and printed as is. To quote the AsciiDoc Home Page:

    AsciiDoc files are designed to be viewed, edited and printed
    directly or translated to other presentation formats using the
    asciidoc(1) command.

Tabs have the property of a configurable width and can thereby skew the layout of a page and distort the meaning. This is particularly a problem when mixing lines with different indentation (space vs tab) in code examples and ASCII art.

Prevent such a mix-up by prohibiting tab indentation entirely.
Signed-off-by: Dirk Wallenstein <halsmit@t-online.de>
---
 Documentation/howto/.gitattributes | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 Documentation/howto/.gitattributes
diff --git a/Documentation/howto/.gitattributes b/Documentation/howto/.gitattributes
new file mode 100644
index 0000000..fecc113
--- /dev/null
+++ b/Documentation/howto/.gitattributes
@@ -0,0 +1 @@
+* whitespace=tab
-- 
1.8.3.3.2.g85103ba
Previous: A Large Angry SCMNext: Dirk Wallenstein
Message 11 of 16 in “howto: Use all-space indentation in ASCII art”
  1. howto: Use all-space indentation in ASCII artDirk Wallenstein, Jul 15, 2013
  2. Junio C HamanoJul 15, 2013
  3. Dirk WallensteinJul 16, 2013
  4. Junio C HamanoJul 16, 2013
  5. Dirk WallensteinJul 16, 2013
  6. 0/2 Remove tabs from howto documentsDirk Wallenstein, Jul 31, 2013
  7. Fredrik GustafssonJul 31, 2013
  8. Jonathan NiederJul 16, 2013
  9. Dirk WallensteinJul 16, 2013
  10. A Large Angry SCMJul 16, 2013
  11. 1/2 howto: Suppress indentation with tabsDirk Wallenstein, Jul 31, 2013
  12. 2/2 howto: Eliminate all tabsDirk Wallenstein, Jul 31, 2013
  13. Junio C HamanoJul 31, 2013
  14. Dirk WallensteinJul 31, 2013
  15. Piotr KrukowieckiAug 3, 2013
  16. Junio C HamanoAug 5, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.