New commits:
commit d8e2d76cf40f69c191c374a954f1e783fd428f44
Author: Bor Kraljič <pyrobor AT ver.si>
Commit: Bor Kraljič <pyrobor AT ver.si>
libmisc: use brace expansion to shorten the list of functions for hooks,
changed run_hooks to be more generic
commit 4e534a1fa14d6ed023c6012a8d703fdeb336495e
Author: Bor Kraljič <pyrobor AT ver.si>
Commit: Bor Kraljič <pyrobor AT ver.si>
libcodex: wrap long description to the width of the terminal
diff --git a/ChangeLog b/ChangeLog
index 5c0b7e6..40dcedf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-22 Bor Kraljič <pyrobor AT ver.si>
+ * libmisc: use brace expansion to shorten the list of functions for
hooks,
+ changed run_hooks to be more generic
+
+2011-10-17 Bor Kraljič <pyrobor AT ver.si>
+ * libcodex: wrap long description to the width of the terminal
+
2011-10-16 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libressurect: clarified a merge message
* alter, vcast: removed last mentions of cast --fix
diff --git a/var/lib/sorcery/modules/libcodex
b/var/lib/sorcery/modules/libcodex
index b3e9c05..176225a 100755
--- a/var/lib/sorcery/modules/libcodex
+++ b/var/lib/sorcery/modules/libcodex
@@ -1028,7 +1028,8 @@ function codex_find_spell_or_section_by_name() {
##
#---------------------------------------------------------------------
function codex_get_spell_description() {
- codex_is_directory_a_spell "$1" && . "$1/DETAILS"
+ local width=$(stty size | cut -d' ' -f2)
+ codex_is_directory_a_spell "$1" && . "$1/DETAILS" | fmt -w $width -s
}