remove newline characters from the contents of table cells
commit23b13749f667402a821b0fef05adbce8e48c9ce1
authorEric Schulte <schulte.eric@gmail.com>
Sat, 19 Jun 2010 00:41:52 +0000 (19 00:41 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Wed, 30 Jun 2010 13:34:04 +0000 (30 15:34 +0200)
treedc38d6e55c82fba06e080cc341614b3be5232329
parent798ebf518baefa538e0a645cb12c9f994e6beb88
remove newline characters from the contents of table cells

This patch changes the functionality of orgtbl-to-orgtbl so that it will
remove newline characters from the text of table cells and replace them
with "\n".  This protects the final table from such newlines.

This patch will probably only have any noticeable effect for tables
imported form external files, or from the results of code blocks.

Best -- Eric

>From 34aacc9aa037e8f17c8d32ed61a25f0a350713a0 Mon Sep 17 00:00:00 2001
From: Eric Schulte <schulte.eric@gmail.com>
Date: Fri, 18 Jun 2010 12:38:26 -0700
Subject: [PATCH] org-table: will now strip newlines from the text of table cells

* lisp/org-table.el (orgtbl-to-generic): added the :remove-newlines
  option which will strip newline characters from the text of table
  cells and replace then with "\n"

  (orgtbl-to-orgtbl): now using the new :remove-newlines option to
  orgtbl-to-generic
lisp/org-table.el