Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Add documentation for various settings that influence the display of timelines. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | comment-markdown-links |
| Files: | files | file ages | folders |
| SHA3-256: |
7d67724653de7f08b2799f4f25d2aa78 |
| User & Date: | drh 2025-03-14 10:22:50.256 |
Context
|
2025-03-19
| ||
| 11:21 | Add documentation for various settings that influence the display of timelines, but only display them if their values are different from the default. check-in: 1f78e794d3 user: drh tags: trunk | |
|
2025-03-14
| ||
| 13:03 | A single new setting "wiki-classic" switches wiki display between the circa-2007 classic wiki and the new 2025 enhanced wiki. Leaf check-in: 918a2e2c5e user: drh tags: comment-markdown-links | |
| 10:22 | Add documentation for various settings that influence the display of timelines. check-in: 7d67724653 user: drh tags: comment-markdown-links | |
| 09:53 | Merge the latest trunk changes into this branch. check-in: 2cb7fefcea user: drh tags: comment-markdown-links | |
Changes
Changes to src/printf.c.
| ︙ | ︙ | |||
237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
#else
static int StrNLen32(const char *z, int N){
int n = 0;
while( (N-- != 0) && *(z++)!=0 ){ n++; }
return n;
}
#endif
/*
** Return an appropriate set of flags for wiki_convert() for displaying
** comments on a timeline. These flag settings are determined by
** configuration parameters.
**
** The altForm2 argument is true for "%!W" (with the "!" alternate-form-2
| > > > > > > > > > > > > > > > > > > > > > > > > > | 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 |
#else
static int StrNLen32(const char *z, int N){
int n = 0;
while( (N-- != 0) && *(z++)!=0 ){ n++; }
return n;
}
#endif
/*
** SETTING: timeline-plaintext boolean default=off
**
** If enabled, no wiki-formatting is done for timeline comment messages.
** Hyperlinks are activated, but they show up on screen using the
** complete input text, not just the display text. No other formatting
** is done.
*/
/*
** SETTING: timeline-block-markup boolean default=off
**
** If enabled, block markup (paragraph brakes, tables, lists, headings, etc)
** is enabled while rendering check-in comment message on the timeline.
** This is disabled by default, because the timeline works best if the
** check-in comments are short and do not take up too much vertical space.
*/
/*
** SETTING: timeline-hard-newlines boolean default=off
**
** If enabled, the timeline honors newline characters in check-in comments.
** In other words, newlines are coverted into <br> for HTML display.
** The default behavior, when this setting is off, is that newlines are
** treated like any other whitespace character.
*/
/*
** Return an appropriate set of flags for wiki_convert() for displaying
** comments on a timeline. These flag settings are determined by
** configuration parameters.
**
** The altForm2 argument is true for "%!W" (with the "!" alternate-form-2
|
| ︙ | ︙ |
Changes to src/timeline.c.
| ︙ | ︙ | |||
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
if( cgi_is_loopback(g.zIpAddr) && db_open_local(0) ){
vid = db_lget_int("checkout", 0);
}
zPrevDate[0] = 0;
mxWikiLen = db_get_int("timeline-max-comment", 0);
dateFormat = db_get_int("timeline-date-format", 0);
bCommentGitStyle = db_get_int("timeline-truncate-at-blank", 0);
bTimestampLinksToInfo = db_get_boolean("timeline-tslink-info", 0);
if( (tmFlags & TIMELINE_VIEWS)==0 ){
tmFlags |= timeline_ss_cookie();
}
if( tmFlags & TIMELINE_COLUMNAR ){
zStyle = "Columnar";
}else if( tmFlags & TIMELINE_COMPACT ){
| > > > > > > > > > > > > > > > > > | 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
if( cgi_is_loopback(g.zIpAddr) && db_open_local(0) ){
vid = db_lget_int("checkout", 0);
}
zPrevDate[0] = 0;
mxWikiLen = db_get_int("timeline-max-comment", 0);
dateFormat = db_get_int("timeline-date-format", 0);
/*
** SETTING: timeline-truncate-at-blank boolean default=off
**
** If enabled, check-in comments displayed on the timeline are truncated
** at the first blank line of the comment text. The comment text after
** the first blank line is only seen in the /info or similar pages that
** show details about the check-in.
*/
bCommentGitStyle = db_get_int("timeline-truncate-at-blank", 0);
/*
** SETTING: timeline-tslink-info boolean default=off
**
** The hyperlink on the timestamp associated with each timeline entry,
** on the far left-hand side of the screen, normally targets another
** /timeline page that shows the entry in context. However, if this
** option is turned on, that hyperlink targets the /info page showing
** the details of the entry.
*/
bTimestampLinksToInfo = db_get_boolean("timeline-tslink-info", 0);
if( (tmFlags & TIMELINE_VIEWS)==0 ){
tmFlags |= timeline_ss_cookie();
}
if( tmFlags & TIMELINE_COLUMNAR ){
zStyle = "Columnar";
}else if( tmFlags & TIMELINE_COMPACT ){
|
| ︙ | ︙ |
Changes to src/wikiformat.c.
| ︙ | ︙ | |||
35 36 37 38 39 40 41 | #define WIKI_SAFE 0x0080 /* Make the result safe for embedding */ #define WIKI_TARGET_BLANK 0x0100 /* Hyperlinks go to a new window */ #define WIKI_NOBRACKET 0x0200 /* Omit extra [..] around hyperlinks */ #define WIKI_MARKDOWN_URL 0x0400 /* Process link targets as in markdown */ #define WIKI_MARKDOWN_FONT 0x0800 /* Accept markdown font/style markup */ #define WIKI_MARKDOWN_LINK 0x1000 /* Accept markdown hyperlinks */ #define WIKI_MARKDOWN_INLINE 0x1800 /* Combo of _FONT and _LINK */ | | > | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
#define WIKI_SAFE 0x0080 /* Make the result safe for embedding */
#define WIKI_TARGET_BLANK 0x0100 /* Hyperlinks go to a new window */
#define WIKI_NOBRACKET 0x0200 /* Omit extra [..] around hyperlinks */
#define WIKI_MARKDOWN_URL 0x0400 /* Process link targets as in markdown */
#define WIKI_MARKDOWN_FONT 0x0800 /* Accept markdown font/style markup */
#define WIKI_MARKDOWN_LINK 0x1000 /* Accept markdown hyperlinks */
#define WIKI_MARKDOWN_INLINE 0x1800 /* Combo of _FONT and _LINK */
#define WIKI_ADMIN 0x2000 /* Ignore g.perm.Hyperlink */
#define WIKI_OVERRIDE 0x4000 /* Ignore setting "wiki-version" */
#endif
/*
** These are the only markup attributes allowed.
*/
enum allowed_attr_t {
|
| ︙ | ︙ |