Permalink
Browse files

- bin/stattree:

 - Finally, it now trims long lines, so we are rid of the horizontal
   scrollbar ;-) We'll see how it'll play out in man format, but
   why worry now when we can just worry later :)

- refs/history-scan: break line in example to fit 80cols

- TODO: items
  • Loading branch information...
1 parent 472c85c commit 5d5c2a2ab540b7c99eec35742a166b229f3acb74 @docelic docelic committed Dec 8, 2004
Showing with 36 additions and 46 deletions.
  1. +19 −36 TODO
  2. +15 −9 bin/stattree
  3. +2 −1 refs/history-scan
View
55 TODO
@@ -5,43 +5,7 @@ Outstanding:
Later:
- Ask ndw about including [NEW!] and [TODO!] in titles in TOC.
-- ./files/ directory is not properly referenced from chunked documents.
- This will be done by prefixing links from chunked documents with ../
- "Code" for this is done, I just need to get it from ndw.
-- [Infrastructure prepared]
- Online examples only have to be standard examples, with actual work in
- practice if condition=online
- Code to do that is:
- <programlisting>
- <textobject>
- <textdata fileref="pathto.xml"/>
- </textobject>
- </programlisting>
- Image tag, sort out mgkpath thing
-- Stinky manpage stylesheets are a disaster. This time it's that
- <cmdsynopsis> is verbatim and <screen> still renders comments without
- newlines! I mean, what the... (And &copy; is translated to crap instead
- of plain "C"). Will need to write XSLT to fix that, and support tables.
- NEWS: New guy took over xslt maintenance and is interested in improved
- manpage support - he's interested in my problems, and is willing to
- do xslt work himself.
-
-- In iccattut:
- - Check if redhat/tarball paths are correct
- - explain syntax accepted in profile files
- - Fix ImageDir and include one picture for example
- - <Racke>I name three things that IC users often didn't acknowledge:
- namespaces (CGI, Values, Scratch)
- parsing order ([L], variables, lists) - interpolation
- inventing syntax doesn't buy you anything
- IC is _not_ a programming language
- - how to delete item from cart in all possible ways
- - give examples for the tasks in 'do yourself' section (in progress)
- - give good practices about filtering, security
- - see problems from old docs/TODO notes on iccattut
- - ICCATTUT MUST NOT STOP WHERE it stops now. it needs to show all stuff
- from current "excercise for readers" section, and also many more things.
- - files/tutorial*: s/tutorial-*.log/tutorial.*.log/
- in source contexts, wrap runaway lines
- match style (no starting verb or all starting verbs) in all Example titles
@@ -138,3 +102,22 @@ Stuff:
and locally
- Mention ML page, cvsweb
- How to deal with Safe
+
+
+- In iccattut (CHECK why revert to old version didn't get to cvs ?!):
+ - Check if redhat/tarball paths are correct
+ - explain syntax accepted in profile files
+ - Fix ImageDir and include one picture for example
+ - <Racke>I name three things that IC users often didn't acknowledge:
+ namespaces (CGI, Values, Scratch)
+ parsing order ([L], variables, lists) - interpolation
+ inventing syntax doesn't buy you anything
+ IC is _not_ a programming language
+ - how to delete item from cart in all possible ways
+ - give examples for the tasks in 'do yourself' section (in progress)
+ - give good practices about filtering, security
+ - see problems from old docs/TODO notes on iccattut
+ - ICCATTUT MUST NOT STOP WHERE it stops now. it needs to show all stuff
+ from current "excercise for readers" section, and also many more things.
+ - files/tutorial*: s/tutorial-*.log/tutorial.*.log/
+
View
@@ -455,20 +455,26 @@ sub wanted {
# Format the context lines before saving to the db
sub format_ctx {
for $_ ( @_ ) { s/\t/ /g; chomp };
- # Find the number of starting whitespace common to all lines
- # and trim it.
+
my $common;
- for $_ ( @_ ) {
- if (/\S/ and /^( +)/) {
+ for my $str ( @_ ) {
+ # Behave long lines
+ my $len = length $str; my $pos = 70;
+ while ( $len > 100 ) {
+ $str =~ s/^(.{$pos}.*?)([\s<\&\?\|\(])/$1 \\\n$2/s;
+ $pos += 70; $len -= 70;
+ }
+
+
+ # Find the number of starting whitespace common to all lines
+ if ($str =~ /\S/ and $str =~ /^( +)/) {
$common = length($1) if !defined $common || length($1) < $common
}
- # TODO Catch runaway lines (produces crapload of things, so refine
- # search before starting to use it)
- #if ( $_ =~ /\S\s{10,}/ ) {
- # warn "Runaway '$_' ?\n";
- #}
}
+
+ # Do as above loop decided
if ( $common ) { s/^ {$common}// for @_ }
+
return @_;
}
View
@@ -158,7 +158,8 @@ __NAME__ example2
<input type="hidden" name="mv_todo" value="return>
<input type="hidden" name="mv_click" value="Login">
<input type="hidden" name="mv_failpage" value="login">
-<input type="hidden" name="mv_successpage" value="[history-scan exclude="^/ord|^/multi/|^/process|^/login|^/logout" pageonly=1]">
+<input type="hidden" name="mv_successpage" value="[history-scan
+ exclude="^/ord|^/multi/|^/process|^/login|^/logout" pageonly=1]">
<input type="hidden" name="mv_nextpage" value="index">
<input type="hidden" name="mv_session_id" value="[data session id]">
<input type="text" name="mv_username" value="[read-cookie MV_USERNAME]">

0 comments on commit 5d5c2a2

Please sign in to comment.