Adds option to handle preformatted code blocks in different ways for gemini #148

Merged
sloum merged 3 commits from gemini-alt-text into release-2.3.0 2020-05-22 21:50:00 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 0257ca92b1 - Show all commits

View File

@ -233,7 +233,7 @@ The scheme that should be used when no scheme is present in a given URL. \fIgoph
.TP
.B
geminiblocks
Determines how to treat preformatted text blocks in text/gemini documents. \fIblock\fP will show the contents of the block, \fIalt\fP will show any available alt text for the block, \fIboth\fP will show both the content and the alt text, and \fIneither\fP will show neither.
Determines how to treat preformatted text blocks in text/gemini documents. \fIblock\fP will show the contents of the block, \fIalt\fP will show any available alt text for the block, \fIboth\fP will show both the content and the alt text, and \fIneither\fP will show neither. Unlike other settings, a change to this value will require a fresh page load to see the change.
.TP
.B
homeurl

View File

@ -459,7 +459,7 @@ func (c *client) doCommandAs(action string, values []string) {
}
case "SEARCH":
c.search(strings.Join(values, " "), "", "")
case "SET", "S": // TODO make the geminiblocks value work
case "SET", "S":
if _, ok := c.Options[values[0]]; ok {
val := strings.Join(values[1:], " ")
if !validateOpt(values[0], val) {