From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17625 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Koray_Ko=C3=A7ak?= Newsgroups: gmane.text.pandoc Subject: .docx to .rst - Bug converting tables that contain merged cells Date: Tue, 16 May 2017 06:48:38 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1944_2066611132.1494942518647" X-Trace: blaine.gmane.org 1494942519 25221 195.159.176.226 (16 May 2017 13:48:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 May 2017 13:48:39 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCZ5T6E2TUKBBN4G5TEAKGQEN7U3FVQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 16 15:48:34 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f64.google.com ([209.85.218.64]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAcq2-0006SQ-9A for gtp-pandoc-discuss@m.gmane.org; Tue, 16 May 2017 15:48:34 +0200 Original-Received: by mail-oi0-f64.google.com with SMTP id b204sf2122446oii.1 for ; Tue, 16 May 2017 06:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=UwKfGDNJK0DGvPK8LSRUi5mXGNv9I/26sXZPbrE9D4k=; b=Zvh85s82iuVg7rU1zRi8+zD0CagHW+DJVu0XYk6TDuRaR72hbN/jmrTpwKNARx2QMS PJWUrdC47u3X/E2gtuLhwC2MQ6NhRUqv+JQGyCiNJFwUZ2yXtgv4ljDANcubherbTdKE AGtyTokBxiI+A24SNt9mavwcYUuov7peEFBtVqi5zvqCabr5UhIayPsEgJr36QocMtdA yzBjhsroC3+UBSnwrAdESrxICZfYjb8MUUf+mrQ1M55NnGigMmU0YLd86MwYP21WKslx q88nGe7G56z7nPE8IbZFnaPcEkwhxXHXFTof+VJByVCx6rQwQ+Rs9vRIOsJGEeMBF1BB ZK/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=UwKfGDNJK0DGvPK8LSRUi5mXGNv9I/26sXZPbrE9D4k=; b=orILCqA8Z00LYTu8wgG3Ldbh8EOrwubwcMjzRCSqs6NHW6Doe/KwsNfpbAIzEmB84z ndwBW6aJ3xtItNCsKx2GBazXVMVGhNB+HR7ewwTrXgjZZiAiatsvN74hqRle2CRfoqzv 4wqoZ4uc8tR4NC8sMe17mWwRFHEN6h8eSQtxbae5GxbtTnr/MnLAg19OSnGAZFrkUNhr lNpgQJQXGjKWMYp7RuncYlYh1XpEVV7GNKqmIY5Ia2L8xRwzciMk+SWVrKsgl4if1j98 BfczNxRkJDe3Q3UjziWgqLprF00UUEyzeD1dTou0JP60s+5kcSn8G9SRsZwYEj+/9wGc F1vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=UwKfGDNJK0DGvPK8LSRUi5mXGNv9I/26sXZPbrE9D4k=; b=MrFvAqONx5nTc1mzu9T+I1aO6FRBJi4OYS33366RFJd7vnd8qYiNqggcPqweHk/IPO fSQW7vkXp6T35/X02hqRQ6sR1wbkwj6aRh5VnoVG6rRsgpfFX/25BAExYABlnpFPdfOh RVNIWJnP/zk1jts4xZc4iMmTJ4LWhtqJatqPy/lscAQvCDiL4zGT69/sj+Tdjg1URbAv Jh/NDE8pAVl4fGnaFf5uvv5M/mTo1So15Lk+W573ZiGT9b8p7tWyAo4IngJ4QaD9q3JN 4Z0QD0E7CxwJ/eXLnhmZXZvhkPk85lgfm9L4JvKEJLkSqWyrkNKzKCi2lsXrWIYFXcZn WQuA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AODbwcAJtryKnbAxTgmcpuQRwMi2DrKlcDASRsvjX3oNaDhdi27++t3W Smx/4S/mLNQPyw== X-Received: by 10.157.37.213 with SMTP id q79mr251432ota.11.1494942519692; Tue, 16 May 2017 06:48:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.40.137 with SMTP id s9ls1268259ota.44.gmail; Tue, 16 May 2017 06:48:39 -0700 (PDT) X-Received: by 10.157.46.178 with SMTP id w47mr251379ota.12.1494942519260; Tue, 16 May 2017 06:48:39 -0700 (PDT) X-Original-Sender: koraykocak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:17625 Archived-At: ------=_Part_1944_2066611132.1494942518647 Content-Type: multipart/alternative; boundary="----=_Part_1945_1655864540.1494942518648" ------=_Part_1945_1655864540.1494942518648 Content-Type: text/plain; charset="UTF-8" Hi all, I'm trying to convert *.docx* documents to *.rst* with Pandoc. The tool correctly converts 'simple' tables. However when a table contains merged cells, it looks like the generated markup is incorrect. For example, a 3x3 table in Word document is correctly converted to this: +-----+-----+-----+ | A | B | C | +=====+=====+=====+ | D | E | F | +-----+-----+-----+ | G | H | I | +-----+-----+-----+ while, when I merge the cells on the top row, generated markup is malformed: +-----+-----+-----+ | A | | | | B | | | | C | +=====+=====+=====+ | D | E | F | +-----+-----+-----+ | G | H | I | +-----+-----+-----+ Is this a known bug? Can anyone suggest me some practical way to overcome this (i.e. some configuration change or patch)? Best regards, -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e06ebc8f-6e26-4383-b0bf-e9cf99eeca85%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1945_1655864540.1494942518648 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I'm trying to convert=C2=A0= .docx=C2=A0documents to=C2=A0.rst=C2=A0with Pandoc. The tool = correctly converts 'simple' tables. However when a table contains m= erged cells, it looks like the generated markup is incorrect.

For example, a 3x3 table in Word document is cor= rectly converted to this:

+-----+-----+-----+ =C2=A0 =C2=A0
| A =C2=A0 | B =C2=A0 | C =C2=A0 | =C2=A0 =C2=A0
+=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D+=3D=3D=3D=3D= =3D+ =C2= =A0 =C2=A0
| D = =C2=A0 | E =C2=A0 | F =C2=A0 | =C2=A0 =C2=A0
+-----+-----+-----+<= /span> =C2=A0 =C2= =A0
| G =C2=A0 | H =C2=A0 | I =C2=A0 | =C2=A0 =C2=A0
+-----+-----+-----+ =C2=A0 =C2=A0

=


while, when I merge the cell= s on the top row, generated markup is malformed:

<= div class=3D"prettyprint" style=3D"border-width: 1px; border-style: solid; = border-color: rgb(187, 187, 187); background-color: rgb(250, 250, 250); wor= d-wrap: break-word;">
+-----+-----+= -----+ |<= span style=3D"color: #000;" class=3D"styled-by-prettify"> A =C2=A0 <= span style=3D"color: #660;" class=3D"styled-by-prettify">| =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0
| =C2=A0 =C2=A0 | = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
| B =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
| =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0
| C = =C2=A0 | =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
+=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D+=
| D =C2=A0 | E =C2=A0 | F =C2=A0 |
+-----+-----+-----+
| G =C2=A0 | H =C2=A0 | I = =C2=A0 |
= +-----+-----+----= -+



Is this a known bug? Can anyone suggest me some practical way to o= vercome this (i.e. some configuration change or patch)?

Best regards,

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/e06ebc8f-6e26-4383-b0bf-e9cf99eeca85%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1945_1655864540.1494942518648-- ------=_Part_1944_2066611132.1494942518647--