Fossil SCM
(cherry-pick): Fix a problem with markdown rendering for "code".
Commit
dad3706248b945e20e66f7e650a2b920fd162039fe3985294220b0a2277b4ae6
Parent
f7914bfdfacad19…
5 files changed
+1
-1
+1
-1
+1
-1
+1
-1
+5
-3
+1
-1
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -5,11 +5,11 @@ | ||
| 5 | 5 | |
| 6 | 6 | ### Now install some additional parts we will need for the build |
| 7 | 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | 8 | |
| 9 | 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | -ENV FOSSIL_INSTALL_VERSION release | |
| 10 | +ENV FOSSIL_INSTALL_VERSION branch-2.3 | |
| 11 | 11 | |
| 12 | 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 | 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION release |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION branch-2.3 |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
+1
-1
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -5,11 +5,11 @@ | ||
| 5 | 5 | |
| 6 | 6 | ### Now install some additional parts we will need for the build |
| 7 | 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | 8 | |
| 9 | 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | -ENV FOSSIL_INSTALL_VERSION release | |
| 10 | +ENV FOSSIL_INSTALL_VERSION branch-2.3 | |
| 11 | 11 | |
| 12 | 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 | 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION release |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION branch-2.3 |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
M
VERSION
+1
-1
| --- VERSION | ||
| +++ VERSION | ||
| @@ -1,1 +1,1 @@ | ||
| 1 | -2.3 | |
| 1 | +2.3.1 | |
| 2 | 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.3 |
| 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.3.1 |
| 2 |
M
VERSION
+1
-1
| --- VERSION | ||
| +++ VERSION | ||
| @@ -1,1 +1,1 @@ | ||
| 1 | -2.3 | |
| 1 | +2.3.1 | |
| 2 | 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.3 |
| 2 |
| --- VERSION | |
| +++ VERSION | |
| @@ -1,1 +1,1 @@ | |
| 1 | 2.3.1 |
| 2 |
+5
-3
| --- src/markdown_html.c | ||
| +++ src/markdown_html.c | ||
| @@ -296,13 +296,15 @@ | ||
| 296 | 296 | BLOB_APPEND_LITERAL(ob, "</a>"); |
| 297 | 297 | return 1; |
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | static int html_code_span(struct Blob *ob, struct Blob *text, void *opaque){ |
| 301 | - BLOB_APPEND_LITERAL(ob, "<code>"); | |
| 302 | - html_escape(ob, blob_buffer(text), blob_size(text)); | |
| 303 | - BLOB_APPEND_LITERAL(ob, "</code>"); | |
| 301 | + if( text ){ | |
| 302 | + BLOB_APPEND_LITERAL(ob, "<code>"); | |
| 303 | + html_escape(ob, blob_buffer(text), blob_size(text)); | |
| 304 | + BLOB_APPEND_LITERAL(ob, "</code>"); | |
| 305 | + } | |
| 304 | 306 | return 1; |
| 305 | 307 | } |
| 306 | 308 | |
| 307 | 309 | static int html_double_emphasis( |
| 308 | 310 | struct Blob *ob, |
| 309 | 311 |
| --- src/markdown_html.c | |
| +++ src/markdown_html.c | |
| @@ -296,13 +296,15 @@ | |
| 296 | BLOB_APPEND_LITERAL(ob, "</a>"); |
| 297 | return 1; |
| 298 | } |
| 299 | |
| 300 | static int html_code_span(struct Blob *ob, struct Blob *text, void *opaque){ |
| 301 | BLOB_APPEND_LITERAL(ob, "<code>"); |
| 302 | html_escape(ob, blob_buffer(text), blob_size(text)); |
| 303 | BLOB_APPEND_LITERAL(ob, "</code>"); |
| 304 | return 1; |
| 305 | } |
| 306 | |
| 307 | static int html_double_emphasis( |
| 308 | struct Blob *ob, |
| 309 |
| --- src/markdown_html.c | |
| +++ src/markdown_html.c | |
| @@ -296,13 +296,15 @@ | |
| 296 | BLOB_APPEND_LITERAL(ob, "</a>"); |
| 297 | return 1; |
| 298 | } |
| 299 | |
| 300 | static int html_code_span(struct Blob *ob, struct Blob *text, void *opaque){ |
| 301 | if( text ){ |
| 302 | BLOB_APPEND_LITERAL(ob, "<code>"); |
| 303 | html_escape(ob, blob_buffer(text), blob_size(text)); |
| 304 | BLOB_APPEND_LITERAL(ob, "</code>"); |
| 305 | } |
| 306 | return 1; |
| 307 | } |
| 308 | |
| 309 | static int html_double_emphasis( |
| 310 | struct Blob *ob, |
| 311 |