aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/output/sqlite.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-01-29 17:00:31 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2019-05-17 16:59:38 -0400
commit5f6caf585c7ccaac0a4310987c85fdcfd3bcff3d (patch)
tree35da6f6f333a23a7c8a0cc87ee3c2322299a816f /src/doc_reform/output/sqlite.d
parentrearrange some code (diff)
format delimiter 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 acfbff3..5f4e99d 100644
--- a/src/doc_reform/output/sqlite.d
+++ b/src/doc_reform/output/sqlite.d
@@ -459,9 +459,9 @@ template SQLiteFormatAndLoadObject() {
) {
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,
);
@@ -474,9 +474,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,
@@ -489,9 +489,9 @@ template SQLiteFormatAndLoadObject() {
auto ref const O obj,
) {
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
);
@@ -502,9 +502,9 @@ template SQLiteFormatAndLoadObject() {
auto ref const O obj,
) {
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
);
@@ -515,8 +515,8 @@ template SQLiteFormatAndLoadObject() {
auto ref const O obj,
) {
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
);
@@ -527,7 +527,7 @@ template SQLiteFormatAndLoadObject() {
auto ref const O obj,
) {
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
);
@@ -537,7 +537,7 @@ template SQLiteFormatAndLoadObject() {
auto ref const O obj,
) {
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
);
@@ -592,12 +592,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
@@ -823,7 +823,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;
@@ -952,7 +952,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;
}
}
@@ -961,12 +961,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,
);
@@ -978,7 +978,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,
@@ -1079,7 +1079,7 @@ template SQLiteInsertMetadata() {
'%s',
'%s'
);
- ¶",
+ ┋",
_uid,
SQLinsertDelimiter!()(doc_matters.src.filename),
SQLinsertDelimiter!()(doc_matters.src.docname_composite_unique_per_src_doc),
@@ -1140,7 +1140,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,
@@ -1163,7 +1163,7 @@ template SQLiteInsertDocObjectsLoop() {
'%s',
'%s'
);
- ¶",
+ ┋",
_uid,
obj.metainfo.ocn,
obj.metainfo.identifier,
@@ -1359,7 +1359,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;
@@ -1488,7 +1488,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;
}
}