Fossil SCM

A pikchr error output formatting fix, per [forum:e167e2e622|forum post e167e2e622], and an unrelated typo fix.

stephan 2021-10-18 08:13 trunk
Commit c440011b74eb591d463707c30f3647694446b24a4bbc88bd1c55e89038541d3d
2 files changed +1 -1 +2 -2
+1 -1
--- src/pivot.c
+++ src/pivot.c
@@ -62,11 +62,11 @@
6262
** Set a secondary file. The primary file must be set first. There
6363
** must be at least one secondary but there can be more than one if
6464
** desired.
6565
*/
6666
void pivot_set_secondary(int rid){
67
- /* Insert the primary record */
67
+ /* Insert the secondary record */
6868
db_multi_exec(
6969
"INSERT OR IGNORE INTO aqueue(rid, mtime, pending, src)"
7070
" SELECT %d, mtime, 1, 0 FROM event WHERE objid=%d AND type='ci'",
7171
rid, rid
7272
);
7373
--- src/pivot.c
+++ src/pivot.c
@@ -62,11 +62,11 @@
62 ** Set a secondary file. The primary file must be set first. There
63 ** must be at least one secondary but there can be more than one if
64 ** desired.
65 */
66 void pivot_set_secondary(int rid){
67 /* Insert the primary record */
68 db_multi_exec(
69 "INSERT OR IGNORE INTO aqueue(rid, mtime, pending, src)"
70 " SELECT %d, mtime, 1, 0 FROM event WHERE objid=%d AND type='ci'",
71 rid, rid
72 );
73
--- src/pivot.c
+++ src/pivot.c
@@ -62,11 +62,11 @@
62 ** Set a secondary file. The primary file must be set first. There
63 ** must be at least one secondary but there can be more than one if
64 ** desired.
65 */
66 void pivot_set_secondary(int rid){
67 /* Insert the secondary record */
68 db_multi_exec(
69 "INSERT OR IGNORE INTO aqueue(rid, mtime, pending, src)"
70 " SELECT %d, mtime, 1, 0 FROM event WHERE objid=%d AND type='ci'",
71 rid, rid
72 );
73
+2 -2
--- src/wiki.c
+++ src/wiki.c
@@ -211,12 +211,12 @@
211211
if( w>0 ){
212212
@ <div class="pikchr-svg" style="max-width:%d(w)px">
213213
@ %s(zOut)
214214
@ </div>
215215
}else{
216
- @ <pre class='error'>\n">
217
- @ %s(zOut);
216
+ @ <pre class='error'>
217
+ @ %h(zOut)
218218
@ </pre>
219219
}
220220
free(zOut);
221221
}else{
222222
@ <pre class='textPlain'>
223223
--- src/wiki.c
+++ src/wiki.c
@@ -211,12 +211,12 @@
211 if( w>0 ){
212 @ <div class="pikchr-svg" style="max-width:%d(w)px">
213 @ %s(zOut)
214 @ </div>
215 }else{
216 @ <pre class='error'>\n">
217 @ %s(zOut);
218 @ </pre>
219 }
220 free(zOut);
221 }else{
222 @ <pre class='textPlain'>
223
--- src/wiki.c
+++ src/wiki.c
@@ -211,12 +211,12 @@
211 if( w>0 ){
212 @ <div class="pikchr-svg" style="max-width:%d(w)px">
213 @ %s(zOut)
214 @ </div>
215 }else{
216 @ <pre class='error'>
217 @ %h(zOut)
218 @ </pre>
219 }
220 free(zOut);
221 }else{
222 @ <pre class='textPlain'>
223

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button