diff --git a/Lib/htmllib.py b/Lib/htmllib.py index 55914299e1a..2d82c772414 100644 --- a/Lib/htmllib.py +++ b/Lib/htmllib.py @@ -48,7 +48,9 @@ def save_bgn(self): def save_end(self): data = self.savedata self.savedata = None - return string.join(string.split(data)) + if not self.nofill: + data = string.join(string.split(data)) + return data # --- Hooks for anchors; should probably be overridden @@ -67,36 +69,6 @@ def anchor_end(self): def handle_image(self, src, alt): self.handle_data(alt) - # --- Hooks for forms; should probably be overridden - - def form_bgn(self, action, method, enctype): - self.do_p([]) - self.handle_data("
") - - def form_end(self): - self.handle_data("
") - self.do_p([]) - - def handle_input(self, type, options): - self.handle_data("") - - def select_bgn(self, name, size, multiple): - self.handle_data("") - - def handle_option(self, value, selected): - self.handle_data("