|
|
@ -59,6 +59,9 @@ class Soup(Bureau):
|
|
|
|
|
|
|
|
|
|
|
|
@add_command('tp', 'Print a short excerpt of a text')
|
|
|
|
@add_command('tp', 'Print a short excerpt of a text')
|
|
|
|
def print_preview(self, data):
|
|
|
|
def print_preview(self, data):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.print_small(data)
|
|
|
|
|
|
|
|
|
|
|
|
filename, _ = data.split(".")
|
|
|
|
filename, _ = data.split(".")
|
|
|
|
|
|
|
|
|
|
|
|
with open(os.path.join(self.mdir, 'contents', filename + '.txt'), 'r') as f:
|
|
|
|
with open(os.path.join(self.mdir, 'contents', filename + '.txt'), 'r') as f:
|
|
|
|