cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit d06c4cda5c5538ea71401bbfb9ff0bb6657d8413
parent c3aa884144bb173073c6b973835a266bae27bf1e
Author: René Wagner <rwagner@rw-net.de>
Date:   Sat, 10 Apr 2021 21:27:58 +0200

introduce -A param for default to alt text

Diffstat:
Mdoc/cgmnlm.scd | 3+++
Msrc/gmnlm.c | 5++++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/doc/cgmnlm.scd b/doc/cgmnlm.scd @@ -28,3 +28,6 @@ cgmnlm - colored Gemini line-mode browser *-W* _width_ Sets the maximum width, in columns, of Gemtext pages. + +*-A* + Enables alternate text instead of preformatted text by default. diff --git a/src/gmnlm.c b/src/gmnlm.c @@ -1269,7 +1269,7 @@ main(int argc, char *argv[]) }; int c; - while ((c = getopt(argc, argv, "hj:PUW:")) != -1) { + while ((c = getopt(argc, argv, "hj:PAUW:")) != -1) { switch (c) { case 'h': usage(argv[0]); @@ -1286,6 +1286,9 @@ main(int argc, char *argv[]) return 1; } break; + case 'A': + browser.alttext = true; + break; case 'P': browser.pagination = false; break;