|
|
@@ -1,6 +1,6 @@ |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
# |
|
|
|
# Copyright (C) 2012 by Ben Kurtovic <ben.kurtovic@verizon.net> |
|
|
|
# Copyright (C) 2012 Ben Kurtovic <ben.kurtovic@verizon.net> |
|
|
|
# |
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy |
|
|
|
# of this software and associated documentation files (the "Software"), to deal |
|
|
@@ -182,6 +182,10 @@ class Wikicode(StringMixIn): |
|
|
|
def filter_text(self, recursive=False, matches=None, flags=FLAGS): |
|
|
|
return list(self.ifilter_text(recursive, matches, flags)) |
|
|
|
|
|
|
|
def normalize(self): |
|
|
|
## Create a deep copy of self ## |
|
|
|
return normalized |
|
|
|
|
|
|
|
def show_tree(self): |
|
|
|
marker = object() # Random object we can find with certainty in a list |
|
|
|
print "\n".join(self._show_tree(self, [], marker)) |