Jonas Fonseca
27283098f4
Clearify code a little
2006-01-09 01:24:38 +01:00
Jonas Fonseca
5808b4ae0c
Make html_top have a pointer type; use it to declare format and par_format
2006-01-09 01:22:33 +01:00
Jonas Fonseca
db11b6452f
Fix a typo and a ref:[]
2006-01-09 01:20:03 +01:00
Jonas Fonseca
2d7356d29a
Improve support for struct documentation by saving the struct name
...
This makes it easy to create
id:[$struct$member]::
One line description
2006-01-09 00:53:41 +01:00
Jonas Fonseca
a7fb4a71e3
Insert missing ':' after 'id', use tab for indentation
2006-01-09 00:01:09 +01:00
Jonas Fonseca
4aa57ffc59
Add asciidoc configuration file for output of code2doc
2006-01-09 00:00:10 +01:00
Jonas Fonseca
7acb3059a8
Make code2doc print to stdout
2006-01-08 23:57:14 +01:00
Jonas Fonseca
ac73ccce42
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-08 23:46:06 +01:00
Jonas Fonseca
61efbc4c9a
First attempt to build html/api docs
...
It only does src/dom/sgml/parser.h for now.
2006-01-08 23:44:59 +01:00
Russ Rowan
0eef02b8f3
Handle: SGML_PARSER_CODE_OK = 1, /**: The parsing was successful */
2006-01-08 17:42:04 -05:00
Jonas Fonseca
5b818b20ba
Use the new asciidoc code markup to document the DOM sgml parser
2006-01-08 23:36:07 +01:00
Jonas Fonseca
b70133760f
Make *-docs depend on doc-dirs; beware if you build individual files
2006-01-08 23:15:47 +01:00
Russ Rowan
0f8f5b0635
Undo last change and left align enums.
2006-01-08 16:57:10 -05:00
Russ Rowan
b2cbbf1139
Don't left align enums.
2006-01-08 16:46:46 -05:00
Jonas Fonseca
65c007d326
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-08 22:36:18 +01:00
Jonas Fonseca
15cd8c8d2c
Simplify dependency on doc-dirs by making MAKECMDGOALS depend on it
2006-01-08 22:33:26 +01:00
Russ Rowan
e15c9d4611
Minor code optimization.
2006-01-08 16:20:46 -05:00
Jonas Fonseca
905aa95a6e
Simplify some more
2006-01-08 21:57:55 +01:00
Russ Rowan
f451e89286
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-08 15:54:29 -05:00
Russ Rowan
4fe54a9d68
Added another blank line between each block and one between each id:[*]::
...
line for readability.
2006-01-08 15:54:00 -05:00
Jonas Fonseca
877ed348be
Simplify the doc Makefile tremendously
2006-01-08 21:46:21 +01:00
Russ Rowan
97b0635d1e
Don't underline leading comment lines that contain ::.
2006-01-08 15:37:03 -05:00
Jonas Fonseca
3529b35da0
Sneak in an extra newline after section headers
2006-01-08 20:02:31 +01:00
Laurent MONIN
72a24f27c5
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-08 19:11:02 +01:00
Laurent MONIN
8fe7eb0357
check_uri_file(): use strcspn().
2006-01-08 19:06:46 +01:00
Russ Rowan
33f373fbd5
Get rid of extraneous spaces left in the output. I have no idea if
...
asciidoc is sensitive enough to fail on these.
2006-01-08 13:05:11 -05:00
Russ Rowan
92be45d1be
Don't remove all blank lines. Just the first of a comment block.
2006-01-08 12:56:15 -05:00
Russ Rowan
67a89e1454
Added a document helper script: code2doc. It's ugly and mean, but it gets
...
the job done.
2006-01-08 05:15:08 -05:00
Miciah Dashiel Butler Masters
5525339901
Fix add_document_to_string to add all chars in a line, not just the first
...
Revision 1.82 of src/scripting/lua/core.c and revision 1.42
of src/viewer/dump/dump.c (2 years, 2 months ago), which moved
add_document_to_string from the former to the latter, introduced
a logic error: the local variable pos was set in the outer loop,
which iterates thru the lines in the document, whereas it should be
(and had been) set in the inner loop, which iterates thru the columns.
This brings us all the way back to a working current_document_formatted
for Lua scripts.
2006-01-08 07:43:44 +00:00
Miciah Dashiel Butler Masters
38fe0f7292
Fix add_document_to_string to actually add stuff
...
Revision 1.147 (14 months, 2 weeks ago) broke the logic so that only
frame characters were added. This fixes that change, getting us halfway
back to a working current_document_formatted function for Lua.
2006-01-08 07:34:59 +00:00
Jonas Fonseca
bc55cd55cb
Add the basic support for rendering RSS documents
...
It is very simple for now, so it only displays headlines and doesn't
support a whole lot of RSS flavours.
2006-01-08 03:44:23 +01:00
Jonas Fonseca
2f9c406ef1
Introduce add_to_dom_string() and turn init_dom_string() into its user
2006-01-08 03:40:54 +01:00
Jonas Fonseca
acb1f7e74d
Refactor computation of scanner error string length to get_sgml_error_end()
2006-01-07 23:51:19 +01:00
Jonas Fonseca
534a16fff1
Improve error detection
2006-01-07 23:40:21 +01:00
Laurent MONIN
8f2d4860bc
Trim trailing whitespaces.
2006-01-07 21:02:51 +01:00
Laurent MONIN
eda6529ced
check_uri_file(): optimize by not using strlen() more than needed.
2006-01-07 21:00:51 +01:00
Laurent MONIN
9183e0cf04
check_whether_file_exists(): optimize by not using strlen() more than
...
needed.
2006-01-07 20:59:34 +01:00
Jonas Fonseca
d0be89a16c
When requested to open local files with a handler use the file in place
...
Everything else is really stupid, i.e. to go through the callback-infested
download code. A parly fix of bug 238 (caching of local files).
2006-01-07 20:19:37 +01:00
Jonas Fonseca
21f9b59130
Use check_whether_file_exists() when encoding a file URI string
...
The file URI encoding is done in translate_url() immediately after the call
to find_uri_protocol() [which also uses check_whether_file_exists()]. So it
only makes sense to use check_whether_file_exists() also here since this is
a potential ambiguous URL from the user.
This fixes handling of files like 'a?b' given the command line, reported by
rrowan. It broke (for the n-th time ;) in CVS version 1.317->1.318 back in
August. The fix preserves the intend of that patch, namely the intend to
optimize the number of calls to file_exists().
2006-01-07 19:16:51 +01:00
Jonas Fonseca
0c1e8a713d
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-07 05:19:06 +01:00
Jonas Fonseca
3835bf8449
A handful of fixes related to error detection
...
- Fix assertion failure by breaking the switch if an error token is next
when previous was a processing instruction.
- Fix <!notation parsing by skipping ident chars instead of spaces.
- Improve checking of processing instruction 'target'-end and what error
string is generated.
- For now put all of the processing instruction data in the error token.
- Remove a DBG()-print.
2006-01-07 05:18:43 +01:00
Jonas Fonseca
97f403a9d9
Add a test file for checking detection of errors by the SGML parser
2006-01-07 05:15:16 +01:00
Jonas Fonseca
03ee543e21
Make sgml-parser request error detection when passed --error option
2006-01-07 04:27:08 +01:00
Jonas Fonseca
c993a0012e
Add basic support for detection errors while scanning
...
It mostly uses the checking for incompleteness already in place. Tested
lightly so it will definately need some more work.
2006-01-07 04:26:08 +01:00
Jonas Fonseca
5defc48eb3
Add basic support for requesting error detection; SGML scanner part missing
2006-01-07 04:21:39 +01:00
Jonas Fonseca
a1e5122183
Drop unnneeded URL argument and simplify test helpers
2006-01-07 02:14:45 +01:00
Laurent MONIN
6182b50679
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-07 02:04:04 +01:00
Jonas Fonseca
f1c3c90a4f
Move line counting tests to own file; simplifies a few things
2006-01-07 02:02:21 +01:00
Laurent MONIN
ee0dc57771
exec_on_master_terminal(): tidy up.
2006-01-07 01:57:11 +01:00
Laurent MONIN
2e67ca1df9
exec_on_master_terminal(): drop old commented code.
2006-01-07 01:55:18 +01:00