Jack Jansen [Fri, 22 Jan 1999 13:23:12 +0000 (13:23 +0000)]
In unpackevent, get the direct object (----) before asking for missed parameters.
The documentation is unclear on this, but the old implementation caused problems
with Default Folder.
Fred Drake [Wed, 20 Jan 1999 20:35:05 +0000 (20:35 +0000)]
convert(): Added parameter "autoclose", which should be a sequence of
general identifiers for which closing tags will be omitted
when SGML is generated. This can be used to tell the markup
generator to drop stuff like </para>. Note that it needs to
be possible for the closing tag to *always* be omitted for it
to be included in "autoclose".
main(): Added command-line option "-a" / "--autoclose" to set the
list of general identifiers passed to the convert() function
as the "autoclose" parameter. The list may only be specified
once (not additive) and GIs should be comma-separated. The
default list includes only "para".
Fred Drake [Wed, 20 Jan 1999 17:26:56 +0000 (17:26 +0000)]
Modified the "sgml" and "xml" targets to stop if the sub-makes fail in
any subdirectory; don't continue with remaining subdirs.
Added "api", "ext", "lib", "mac", "ref", and "tut" targets to only do
submakes in those directories. This is just a lot easier to use than
to cd into the subdir and use make.rules directly.
Fred Drake [Tue, 19 Jan 1999 21:46:48 +0000 (21:46 +0000)]
handle_labels(): Fix problem for document fragments containing more
than one "root" that prevented all the <label id=...> items
from being promoted to id attributes on the enclosing chapter/
section/... properly.
Fred Drake [Tue, 19 Jan 1999 16:30:10 +0000 (16:30 +0000)]
add_module_idx(), add_idx_hook():
Change the message printed before running buildindex.py;
"Doing the index..." wasn't clear and could be misinterpreted
with an inappropriate mindset. ;-)
Barry Warsaw [Tue, 19 Jan 1999 13:26:56 +0000 (13:26 +0000)]
(py-mode-map): Removed special bindings for C-m and C-j to
py-newline-and-indent. These ought to get picked up by the mapcar
that follows; any existing binding to newline-and-indent gets shadowed
to py-newline-and-indent.
This will break some people who, e.g. bind C-m or C-j to newline but
still want these bound to py-newline-and-indent in Python mode. On
the other hand, the forced binding pisses off Emacs diehards. So
consider this experimental and see if any tall Dutch guys complain :-)
Barry Warsaw [Mon, 18 Jan 1999 21:49:39 +0000 (21:49 +0000)]
(py-narrow-to-defun): New command (bound to C-x n d) which mimics the
standard narrow-to-defun but works with Python classes and methods.
With no arg, narrows to most enclosing def/method. With C-u arg,
narrows to most enclosing class.
Fred Drake [Thu, 14 Jan 1999 21:18:03 +0000 (21:18 +0000)]
Make <rfc> no longer an empty element but a container. The text
currently generated by the LaTeX and LaTeX2HTML processes is generated
here as well, making it more flexible in the SGML version.
Reduce the <args> element so that <optional> goes away; just use
square brackets to indicate what's optional. This makes it easier to
read than the LaTeX, and the processor can do any checking it needs to
in order to make sure it's legit. Possible shortcoming: DSSSL
processors may need more explicit markup. Can probably hack around it
for this case, but we'll see.
Barry Warsaw [Thu, 14 Jan 1999 19:59:58 +0000 (19:59 +0000)]
Message.getaddrlist(): This now handles multiple occurances of the
named header, so that if a message has, e.g. multiple CC: lines, all
will get returned by the call to getaddrlist(). It also correctly
handles addresses which show up in continuation lines.
AdderlistClass.__init__(): Added \n to self.CR which fixes a bug that
sometimes, an address would contain a bogus trailing newline.
Message.getaddress(): In final else clause, added a test for the
character we're at being in self.specials. Without this, such
characters never get consumed and we infloop. Case in point (as
posted to c.l.py):
To: <[smtp:dd47@mail.xxx.edu]_at_hmhq@hdq-mdm1-imgout.companay.com>
----------------------------^
otherwise we'd infloop here
Fred Drake [Thu, 14 Jan 1999 19:45:38 +0000 (19:45 +0000)]
Several new functions to re-write tables to be at least partly
conformant with the OASIS Exchange model. There's a little more
massage left to do, but not much.
Guido van Rossum [Thu, 14 Jan 1999 19:01:53 +0000 (19:01 +0000)]
Jim Ahlstrom patch: cutoff should be a long for machines with 16-bit
ints. (In theory, other variables should be widened to long as well,
but this won't ever be needed, since the len of a list is still an
int.)
Fred Drake [Thu, 14 Jan 1999 17:38:12 +0000 (17:38 +0000)]
Adjustments to allow elements with subelements as parameters. This is
used to deal with the table headings and entries.
An additional flag in the element table is used to indicate elements
which have no "general" content, but which do have subelement
content. These must be flagged distinctly from empty elements.
Currently used for \lineii, \lineiii, and \lineiv.
Guido van Rossum [Thu, 14 Jan 1999 00:42:00 +0000 (00:42 +0000)]
Change the order of the utime() and the chmod() call in copystat().
This doesn't make a bit of difference on Unix, but apparently on
Windows NT you need write permission before you can set the utime...
Fred Drake [Wed, 13 Jan 1999 17:09:06 +0000 (17:09 +0000)]
\seemodule: Fix so that each \seemodule entry gets its own paragraph,
so they don't get run together when there's no blank line
between them in the source. The HTML conversion already did
the right thing.
\refmodule: Refer to a module, using a hyperlink in the PDF version.
Visually the same as \module.
Greg Ward [Wed, 13 Jan 1999 16:12:04 +0000 (16:12 +0000)]
Added: mems.lib.text_file: provides TextFile class for parsing text
files with (optional) comment stripping, blank line skipping, whitespace
removal, and line joining with trailing backslashes.
Guido van Rossum [Tue, 12 Jan 1999 22:09:18 +0000 (22:09 +0000)]
Vladimir Marangozov's patch:
The separator dances too much and seems to jump by arbitrary amounts
in arbitrary directions when I try to move it for resizing the frames.
This patch makes it more quiet.
Fred Drake [Tue, 12 Jan 1999 18:33:47 +0000 (18:33 +0000)]
<writer>.send_paragraph(): Clarify what needs to be done by this
method and what it should not do. (Specifically: handling
breaking of last line of preceeding paragraph.)