Compare commits

...

2 Commits

Author SHA1 Message Date
Romain de Laage 9a2f0ddc89
Now handle links with no text 2021-02-15 15:06:24 +01:00
Romain de Laage 3fd7bddeeb
Add help page 2021-02-15 14:56:02 +01:00
3 changed files with 18 additions and 2 deletions

11
help.gmi Normal file
View File

@ -0,0 +1,11 @@
# Help about Scorpius
Scorpius is a Gtk Gemini file viewer. You CAN'T make Gemini requests for the moment. You can browse by clicking on links or by enter a file path in the search bar in the upper left corner then click on 'Go !'.
## Contact Me
You can contact me by email : romain.delaage@rdelaage.ovh
## Git repository
=> https://git.rdelaage.ovh/rdelaage/scorpius

View File

@ -2,6 +2,11 @@
Welcome on Scorpius. This is a simple Gnome Gemini file viewer. I will (maybe, it depends on how much time I can spend on it) try to make a simple Gtk Gemini browser with project.
## How to use Scorpius ?
You could read the help :
=> help.gmi Help !
## Why ?
Because I'm a gnome lover and, for the moment, all the Gemini client I saw aren't beautiful. Of course there is Lagrange but it is not well integrated in Gnome environment.

View File

@ -115,7 +115,7 @@ parseFile (const char *path)
beginUrl++;
//Get URL lenght
while (beginUrl + urlLen < size && line[beginUrl + urlLen] != ' ')
while (beginUrl + urlLen < size && line[beginUrl + urlLen] != ' ' && line[beginUrl + urlLen] != '\n')
urlLen++;
//mark end of url
@ -136,7 +136,7 @@ parseFile (const char *path)
//If not text, text = url
if (beginText == size)
#ifdef TESTGEMPARSE
addLink (line + beginUrl, links[linkNumber]);
addLink (line + beginUrl, line + beginUrl);
#else
addLink (render, links[linkNumber], links[linkNumber]);
#endif