meta_data: fix multiline string handling in show&edit, move detection logic into model