rkd77
e781466cde
Merge pull request #267 from hedyhli/master
...
[gemini] Use paragraph tags on gemtext empty lines
2023-09-28 10:38:26 +02:00
hedy
7266ac4cbd
[gemini] Use paragraph tags on gemtext empty lines
...
This patch makes paragraphs separated by an empty new line appear after
an empty new line when rendered in elinks.
Previously, for a gemtext source that looks like this:
First para
Second line
Second para
It renders like this:
First para
Second line
Second para
After this patch, they now render like this:
First para
Second line
Second para
Unfortunately this also adds a </p> to the start of the HTML, as well as
a <p> at the end, both redundant; but since the HTML is parsed and
rendered later on, it does not seem to alter how the document would
look.
</p><p> First para <br> Second line </p><p> Second para </p><p>
I could possibly add a `first_paragraph` variable and a `i !=
buffer->length` check to remove the first </p> and last <p> in the HTML,
making the HTML source "prettier". But I don't believe that would be too
beneficial, considering the performance tradeoff in executing these two
extra checks for each empty new line encountered.
For testing please see: gemini://hedy.tilde.cafe/tmp/paragraphs.gmi
2023-09-28 15:48:59 +08:00
Witold Filipczyk
b0127bec3b
[js] unused variable
2023-09-19 21:02:44 +02:00
Witold Filipczyk
4d8de245ad
[spidermonkey] element.style (setter)
2023-09-19 20:59:35 +02:00
Witold Filipczyk
b434875c52
[quickjs] element.style (setter)
2023-09-19 20:40:03 +02:00
Witold Filipczyk
6fb1360c01
[mujs] element.style (setter)
2023-09-19 20:19:21 +02:00
Witold Filipczyk
05914c6d74
[po] Updated POTFILES
2023-09-19 17:31:22 +02:00
Witold Filipczyk
c7cf135844
[test] Page for element.style (getter)
2023-09-19 17:30:06 +02:00
Witold Filipczyk
0b7caf4e82
[spidermonkey] element.style (getter)
2023-09-19 17:29:08 +02:00
Witold Filipczyk
b34d1b6b60
[quickjs] element.style (getter)
2023-09-19 16:48:16 +02:00
Witold Filipczyk
e2ea308100
[mujs] element.style (getter)
2023-09-19 16:04:39 +02:00
Witold Filipczyk
79bfb0bc4a
[br] Shorter code
2023-09-14 17:57:56 +02:00
Witold Filipczyk
5fbfacbab6
[xhtml] Special case for BR. Refs #266
...
Rewrite is as <BR/> instead of <BR></BR>.
2023-09-14 17:40:27 +02:00
Witold Filipczyk
c603fe4058
[libdom] convert back < to < and > to > Refs #266
2023-09-13 21:38:40 +02:00
Witold Filipczyk
b8a1b1e01f
[spidermonkey] init string () not {}
2023-09-12 18:21:49 +02:00
Witold Filipczyk
843af9e300
[c++] initialize string with () not {}. Refs #253
2023-09-12 18:01:19 +02:00
Witold Filipczyk
aca4e7e517
[mujs] Typo
2023-09-12 17:28:26 +02:00
Witold Filipczyk
929ff93cca
[curl] Build fix
2023-09-12 16:56:36 +02:00
Witold Filipczyk
c3eae90ce9
[clang] Compilation fixes
2023-09-12 16:41:09 +02:00
Witold Filipczyk
7cf2be2db7
[spidermonkey] Declare str earlier
2023-09-12 15:41:42 +02:00
Witold Filipczyk
80e2b6b812
[quickjs] compilation fix
2023-09-12 15:39:26 +02:00
Witold Filipczyk
496bfcea60
[mujs] Compilation fix? Refs #253
2023-09-12 15:37:10 +02:00
Witold Filipczyk
e0a125f112
[gmi] Add a new line after the first line of "preformatted" text. Refs #265
2023-09-12 10:23:26 +02:00
Witold Filipczyk
e5ad52fc57
[gemini] Off by one? Refs #264
2023-09-12 09:58:59 +02:00
Witold Filipczyk
47c59125f4
[quickjs] element.blur()
2023-09-11 19:11:16 +02:00
Witold Filipczyk
dd66c07a8c
[mujs] element.blur()
2023-09-11 19:07:51 +02:00
Witold Filipczyk
92d8883722
[spidermonkey] element.blur()
2023-09-11 19:03:53 +02:00
Witold Filipczyk
c80dcd4e89
[spidermonkey] element.click()
2023-09-11 18:58:29 +02:00
Witold Filipczyk
d7255e44d9
[mujs] element.click()
2023-09-11 18:52:14 +02:00
Witold Filipczyk
d12919cabd
[quickjs] element.click()
2023-09-11 18:46:21 +02:00
Witold Filipczyk
b19e783a4f
[quickjs] Duplicated condition
2023-09-11 16:33:19 +02:00
Witold Filipczyk
37c6e34cf2
[file] Focus on .. in file directory listing. Refs #253
...
Requires js.
2023-09-11 16:29:52 +02:00
Witold Filipczyk
35fbd3e87e
[quickjs] element.focus()
2023-09-11 16:17:14 +02:00
Witold Filipczyk
a2df98a769
[mujs] element.focus()
2023-09-11 16:01:37 +02:00
Witold Filipczyk
188f63941c
[spidermonkey] element.focus()
2023-09-11 15:48:18 +02:00
Witold Filipczyk
e2e7b7332e
[libdom] Added map (node -> element_offset)
2023-09-11 14:59:05 +02:00
Witold Filipczyk
207dc70c87
[libcss] Set status = 0 for color.
2023-08-26 09:10:03 +02:00
Witold Filipczyk
abf035f21f
[libcss] Do not set black as default color
2023-08-26 09:04:44 +02:00
Witold Filipczyk
80a33fd3ea
[css] line-through
2023-08-25 20:53:26 +02:00
Witold Filipczyk
524b4e0469
[terminfo] strike
2023-08-25 20:23:01 +02:00
Witold Filipczyk
c9fd41588f
[terminal] Strikethrough for <STRIKE> element
2023-08-25 20:10:54 +02:00
Witold Filipczyk
33731cf82c
[terminal] Do not count non-existent temporary files
...
Weird names were counted on slave terminals, but files
were not created.
2023-08-22 17:19:11 +02:00
Witold Filipczyk
43f970d1f4
[data] Added image/jxl as well. Refs #261
2023-08-22 08:25:07 +02:00
Witold Filipczyk
365f1075b8
[data] string parameter was not used
2023-08-21 16:18:09 +02:00
Witold Filipczyk
997bf59a3a
[test] this file when viewed must gnerate temporary file with .svg extension. Refs #261
2023-08-21 14:40:22 +02:00
Witold Filipczyk
9820cefba6
[data] Add extension .svg for image/svg+xml . Refs #261
...
The first idea was to add a function for mapping content-type -> extension,
but this change is only one line of code.
2023-08-21 14:36:23 +02:00
Witold Filipczyk
a9c10ad036
[po] Updated POTFILES
2023-08-11 16:17:20 +02:00
Witold Filipczyk
664b85418e
[menu] Added "Remove temporary files" menu entry.
2023-08-11 16:06:05 +02:00
Witold Filipczyk
f351f66f84
[info] Show number of temporary files
2023-08-11 15:51:36 +02:00
Witold Filipczyk
bbb18c506a
[temp] Shorter for loop
2023-08-11 14:57:14 +02:00