msnoigrs / ox-rst

reStructuredText Back-End for Org-Mode Export Engine
116 stars 18 forks source link

:number-lines: 0 #25

Closed apeyroux closed 7 years ago

apeyroux commented 8 years ago

Hello,

When I want to export I have this line that starts in the code block. ":number-lines: 0". I would like to turn this off because this break me problems with readthedocs.io (the code does not appear)

Here is my sample code org

#+BEGIN_SRC restclient :exports results :var urlws="http://127.0.0.1" secret="secret" id-instance="BPJ92"
 POST :urlws/myalerts?id-instance=:id-instance&secret=:secret
 #+END_SRC

 #+RESULTS:
 #+BEGIN_SRC js
 [
   {
     "id": 1,
     "title": "A Title 1",
     "message": "A message lorem lipsum alert 1",
     "destination": "local",
     "deleteurl": "http://127.0.0.1/delete/1/"
   },
   {
     "id": 2,
     "title": "A Title 2",
     "message": "A message lorem lipsum alert 2",
     "destination": "local",
     "deleteurl": "http://127.0.0.1/delete/2/"
   }
 ]
 // POST http://127.0.0.1/myalerts?id-instance=BPJ92&secret=secret
 // HTTP/1.1 200 OK
 // Host: 127.0.0.1
 // Connection: close
 // X-Powered-By: PHP/7.0.12
 // Access-Control-Allow-Origin: *
 // Cache-Control: no-cache
 // Content-Type: application/json
 // Date: Mon, 24 Oct 2016 17:16:33 GMT
 // Request duration: 0.017809s
 #+END_SRC

after export :

.. code-block:: js
    :number-lines: 0

    [
      {
        "id": 1,
        "title": "A Title 1",
        "message": "A message lorem lipsum alert 1",
        "destination": "local",
        "deleteurl": "http://127.0.0.1/delete/1/"
      },
      {
        "id": 2,
        "title": "A Title 2",
        "message": "A message lorem lipsum alert 2",
        "destination": "local",
        "deleteurl": "http://127.0.0.1/delete/2/"
      }
    ]
    // POST http://127.0.0.1/myalerts?id-instance=BPJ92&secret=secret
    // HTTP/1.1 200 OK
    // Host: 127.0.0.1
    // Connection: close
    // X-Powered-By: PHP/7.0.12
    // Access-Control-Allow-Origin: *
    // Cache-Control: no-cache
    // Content-Type: application/json
    // Date: Mon, 24 Oct 2016 17:28:32 GMT
    // Request duration: 0.017208s

https://github.com/masayuko/ox-rst/blob/master/ox-rst.el#L1346

Thank you for this plugin. Regards