GNU bug report logs -
#64205
Fix missing border cell when using orgtbl-to-table.el function
Previous Next
Reported by: Jakub Ječmínek <jecminek.k <at> gmail.com>
Date: Wed, 21 Jun 2023 11:28:03 UTC
Severity: normal
Tags: fixed
Fixed in version 30.1
Done: Robert Pluim <rpluim <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
You're right. There are more of these mistakes in the `org-table' file, for
example on line 1061, 1126 and 4666.
Jakub
st 21. 6. 2023 v 17:24 odesílatel Robert Pluim <rpluim <at> gmail.com> napsal:
> >>>>> On Wed, 21 Jun 2023 16:08:13 +0200, Jakub Ječmínek <
> jecminek.k <at> gmail.com> said:
> Jakub> diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el
> Jakub> index 42f234790c5..6810fd8dc5a 100644
> Jakub> --- a/lisp/org/org-table.el
> Jakub> +++ b/lisp/org/org-table.el
> Jakub> @@ -6132,9 +6132,13 @@ supported."
> Jakub> (with-temp-buffer
> Jakub> (insert (orgtbl-to-orgtbl table params))
> Jakub> (org-table-align)
> Jakub> - (replace-regexp-in-string
> Jakub> - "-|" "-+"
> Jakub> - (replace-regexp-in-string "|-" "+-" (buffer-substring 1
> (buffer-size))))))
> Jakub> + (goto-char (point-min))
> Jakub> + (while (re-search-forward "-|" nil t)
> Jakub> + (replace-match "-+"))
> Jakub> + (goto-char (point-min))
> Jakub> + (while (re-search-forward "|-" nil t)
> Jakub> + (replace-match "+-"))
> Jakub> + (buffer-string)))
>
> Youʼre replacing fixed strings, so you could use `search-forward'
> instead of `re-search-forward'.
>
> Robert
> --
>
[Message part 2 (text/html, inline)]
[0001-Fix-orgtbl-to-table.el-function-to-include-last-cell.patch (application/octet-stream, attachment)]
This bug report was last modified 2 years and 27 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.