aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/output/sqlite.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-04-10 14:25:38 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-05-17 16:59:54 -0400
commit6d337554a5354b5ac3825f8103a90476edea46ac (patch)
treea0c41d08a2488503c0770adab77989b0898dce5c /src/doc_reform/output/sqlite.d
parent0.6.0 docReform project license AGPLv3+ (diff)
text format delimiter, use: "┃" instead of "┋"
- gdc has compilation issue with the "┋" character, not worth arguing, make internal marker changes (can be changed again) - text format delimiter rg -l "┋" org/. | xargs sed -i 's/┋/┃/g'
Diffstat (limited to 'src/doc_reform/output/sqlite.d')
-rw-r--r--src/doc_reform/output/sqlite.d48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/doc_reform/output/sqlite.d b/src/doc_reform/output/sqlite.d
index 113af10..0be198b 100644
--- a/src/doc_reform/output/sqlite.d
+++ b/src/doc_reform/output/sqlite.d
@@ -463,9 +463,9 @@ template SQLiteFormatAndLoadObject() {
assert(obj.metainfo.is_a == "heading");
string _txt = munge_html(doc_matters, obj);
_txt = inline_markup(doc_matters, obj, _txt);
- string o = format(q"┋<p class="%s"><b>
+ string o = format(q"┃<p class="%s"><b>
%s
- </b></p>┋",
+ </b></p>┃",
obj.metainfo.is_a,
_txt,
);
@@ -482,9 +482,9 @@ template SQLiteFormatAndLoadObject() {
string _txt = munge_html(doc_matters, obj);
_txt = (obj.attrib.bullet) ? ("●&#160;&#160;" ~ _txt) : _txt;
_txt = inline_markup(doc_matters, obj, _txt);
- string o = format(q"┋<p class="%s" indent="h%si%s">
+ string o = format(q"┃<p class="%s" indent="h%si%s">
%s
- </p>┋",
+ </p>┃",
obj.metainfo.is_a,
obj.attrib.indent_hang,
obj.attrib.indent_base,
@@ -501,9 +501,9 @@ template SQLiteFormatAndLoadObject() {
assert(obj.metainfo.is_of_type == "block");
assert(obj.metainfo.is_a == "quote");
string _txt = munge_html(doc_matters, obj);
- string o = format(q"┋<p class="%s">
+ string o = format(q"┃<p class="%s">
%s
- </p>┋",
+ </p>┃",
obj.metainfo.is_a,
_txt
);
@@ -518,9 +518,9 @@ template SQLiteFormatAndLoadObject() {
assert(obj.metainfo.is_of_type == "block");
assert(obj.metainfo.is_a == "group");
string _txt = munge_html(doc_matters, obj);
- string o = format(q"┋<p class="%s">
+ string o = format(q"┃<p class="%s">
%s
- </p>┋",
+ </p>┃",
obj.metainfo.is_a,
_txt
);
@@ -535,8 +535,8 @@ template SQLiteFormatAndLoadObject() {
assert(obj.metainfo.is_of_type == "block");
assert(obj.metainfo.is_a == "block");
string _txt = munge_html(doc_matters, obj);
- string o = format(q"┋
- <p class="%s">%s</p>┋",
+ string o = format(q"┃
+ <p class="%s">%s</p>┃",
obj.metainfo.is_a,
_txt.stripRight
);
@@ -551,7 +551,7 @@ template SQLiteFormatAndLoadObject() {
assert(obj.metainfo.is_of_type == "block");
assert(obj.metainfo.is_a == "verse");
string _txt = munge_html(doc_matters, obj);
- string o = format(q"┋<p class="%s">%s</p>┋",
+ string o = format(q"┃<p class="%s">%s</p>┃",
obj.metainfo.is_a,
_txt
);
@@ -565,7 +565,7 @@ template SQLiteFormatAndLoadObject() {
assert(obj.metainfo.is_of_type == "block");
assert(obj.metainfo.is_a == "code");
string _txt = html_special_characters_code(obj.text);
- string o = format(q"┋<p class="%s">%s</p>┋",
+ string o = format(q"┃<p class="%s">%s</p>┃",
obj.metainfo.is_a,
_txt
);
@@ -624,12 +624,12 @@ template SQLiteFormatAndLoadObject() {
auto t = _tablarize(obj, _txt);
_txt = t[0];
string _note = t[1];
- string o = format(q"┋<p class="%s">
+ string o = format(q"┃<p class="%s">
<table summary="normal text css" width="95%%" border="0" bgcolor="white" cellpadding="2" align="center">
%s
</table>
%s
- </p>┋",
+ </p>┃",
obj.metainfo.is_a,
_txt,
_note
@@ -855,7 +855,7 @@ template SQLiteFormatAndLoadObject() {
template SQLiteTablesReCreate() {
string SQLiteTablesReCreate()() {
string _sql_instruct;
- _sql_instruct = format(q"┋
+ _sql_instruct = format(q"┃
DROP INDEX IF EXISTS idx_ocn;
DROP INDEX IF EXISTS idx_uid;
DROP INDEX IF EXISTS idx_digest_clean;
@@ -984,7 +984,7 @@ template SQLiteTablesReCreate() {
CREATE INDEX idx_filename ON metadata_and_text(src_filename);
CREATE INDEX idx_language ON metadata_and_text(language_document_char);
CREATE INDEX idx_topics ON metadata_and_text(classify_topic_register);
- ┋",);
+ ┃",);
return _sql_instruct;
}
}
@@ -993,12 +993,12 @@ template SQLiteDeleteDocument() {
M doc_matters,
) {
string _uid = doc_matters.src.doc_uid;
- string _delete_uid = format(q"┋
+ string _delete_uid = format(q"┃
DELETE FROM metadata_and_text
WHERE uid = '%s';
DELETE FROM doc_objects
WHERE uid_metadata_and_text = '%s';
- ┋",
+ ┃",
_uid,
_uid,
);
@@ -1010,7 +1010,7 @@ template SQLiteInsertMetadata() {
M doc_matters,
) {
string _uid = SQLinsertDelimiter!()(doc_matters.src.doc_uid);
- string _insert_metadata = format(q"┋
+ string _insert_metadata = format(q"┃
INSERT INTO metadata_and_text (
uid,
src_filename,
@@ -1111,7 +1111,7 @@ template SQLiteInsertMetadata() {
'%s',
'%s'
);
- ┋",
+ ┃",
_uid,
SQLinsertDelimiter!()(doc_matters.src.filename),
SQLinsertDelimiter!()(doc_matters.src.docname_composite_unique_per_src_doc),
@@ -1172,7 +1172,7 @@ template SQLiteInsertDocObjectsLoop() {
string _uid = SQLinsertDelimiter!()(doc_matters.src.doc_uid);
auto site_url = DocReformPathsUrl!()(doc_matters);
string insertDocObjectsRow(O)(O obj) {
- string _insert_doc_objects_row = format(q"┋
+ string _insert_doc_objects_row = format(q"┃
INSERT INTO doc_objects (
uid_metadata_and_text,
ocn,
@@ -1195,7 +1195,7 @@ template SQLiteInsertDocObjectsLoop() {
'%s',
'%s'
);
- ┋",
+ ┃",
_uid,
obj.metainfo.ocn,
obj.metainfo.identifier,
@@ -1391,7 +1391,7 @@ template SQLiteTablesCreate() {
template SQLiteTablesReCreate() {
string SQLiteTablesReCreate()() {
string _sql_instruct;
- _sql_instruct = format(q"┋
+ _sql_instruct = format(q"┃
DROP INDEX IF EXISTS idx_ocn;
DROP INDEX IF EXISTS idx_uid;
DROP INDEX IF EXISTS idx_digest_clean;
@@ -1520,7 +1520,7 @@ template SQLiteTablesCreate() {
CREATE INDEX idx_filename ON metadata_and_text(src_filename);
CREATE INDEX idx_language ON metadata_and_text(language_document_char);
CREATE INDEX idx_topics ON metadata_and_text(classify_topic_register);
- ┋",);
+ ┃",);
return _sql_instruct;
}
}