From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: bug#31273: 27.0.50; org: #+begin_right block is not exported correctly Date: Sat, 28 Apr 2018 18:23:38 +0200 Message-ID: <87h8nvqoz9.fsf@nicolasgoaziou.fr> References: <87bme6gg7i.fsf@gmail.com> <87r2mzqv7w.fsf@nicolasgoaziou.fr> <87k1sr9ycb.fsf@gmail.com> <87lgd7qs98.fsf@nicolasgoaziou.fr> <87wowr8hwh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCSdq-0001MG-7E for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 12:24:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCSdm-0006TS-7w for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 12:24:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCSdm-0006TO-47 for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 12:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fCSdl-0001Az-Q6 for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 12:24:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87wowr8hwh.fsf@gmail.com> (Dmitry Alexandrov's message of "Sat, 28 Apr 2018 18:33:50 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Dmitry Alexandrov <321942@gmail.com> Cc: 31273@debbugs.gnu.org Dmitry Alexandrov <321942@gmail.com> writes: > Just another unofficial reference card [0], by Caio Rordrigues at that ti= me, that again states that: > > #+begin_right This text is aligned to the right! #+end_right > > These persons are probably consider themselves highly familiar with > Org, yet they have been mistaken. What to say about novices! So the > absence of this feature is indeed highly unobvious. That=E2=80=99s the on= ly > point I am trying to make. > > [0] https://github.com/caiorss/Emacs-Elisp-Programming/blob/master/Org-Mo= de.org#text-position > >> In any case, let me insist again on the following point: you can use >> "#+begin_right" in HTML to your heart's content if you define the >> appropriate CSS property. > > If there is no plan to make into default as with centring, a warning > might be very apt. The issue here is that "#+begin_right" is perfectly valid syntax, and so is, e.g., "#+begin_foobar". Their behaviour is perfectly defined. For example, in HTML export the will create
and
if you have a nil `org-html-html5-fancy', or and otherwise. Therefore, a warning is not an option here. Only a careful read of the manual can help clearing the misconception about what is included in Org and what can be extended. Now, it's true that at some point, Org defined a ".right" CSS rule instead of ".org-right", so "#+begin_right" could work out of the box, but only in the HTML export. However, this was not the intent. For the record any "#+begin_XXX" construct that has no particular meaning in Org may be treated specially by export back-ends (or ignored altogether). It is often a way to write a specific environment.