diff options
author | Hans-Christoph Steiner <hans@eds.org> | 2019-11-27 12:59:04 +0100 |
---|---|---|
committer | Hans-Christoph Steiner <hans@eds.org> | 2019-12-10 16:06:53 +0100 |
commit | 9c86f54ba07355a968f982aed295e8b6597b4b89 (patch) | |
tree | fe2954f48bbcf92ff2f7394210ebd00701a7f3d8 /dir-list-spec.txt | |
parent | 68437951a3f758475d24b872c5b66c6f227b3ae5 (diff) | |
download | torspec-9c86f54ba07355a968f982aed295e8b6597b4b89.tar.gz torspec-9c86f54ba07355a968f982aed295e8b6597b4b89.zip |
convert text blocks into widely compatible "blockquote" syntax
This only adds newline characters to make the existing text blocks act like
"blockquote" or "code block" syntax in Markdown, asciidoc, and others.
This was accomplished by manually reviewing the output of this script:
```bash
for f in *.txt; do
cat $f | python -c "import sys,re;print(re.sub(r'(\n {0,3}[^ \n][^\n]*\n)( {4,}[^\n]*)', r'\1\n\2', sys.stdin.read()))" > ${f}.tmp
mv ${f}.tmp $f
done
```
Diffstat (limited to 'dir-list-spec.txt')
-rw-r--r-- | dir-list-spec.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dir-list-spec.txt b/dir-list-spec.txt index 063fc24..c118040 100644 --- a/dir-list-spec.txt +++ b/dir-list-spec.txt @@ -102,6 +102,7 @@ 2. Format Details Directory lists contain the following sections: + - List Header (exactly once) - List Generation (exactly once, may be empty) - Directory Entry (zero or more times) @@ -421,6 +422,7 @@ Libraries that require high-uptime availablility of Tor directory information should investigate the following options: + * OnionOO: https://metrics.torproject.org/onionoo.html * Third-party OnionOO mirrors are also available * CollecTor: https://collector.torproject.org/ |