[aur-dev] [PATCH] Don't add at the end of a comment

2015-07-11 Thread Marcel Korpel
If the comment ends with a newline, a superfluous is inserted, resulting in extra whitespace at the end of the comment. Signed-off-by: Marcel Korpel --- web/lib/aur.inc.php | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php inde

[aur-dev] [PATCH] Update PHPDoc description of parse_comment()

2015-07-11 Thread Marcel Korpel
Signed-off-by: Marcel Korpel --- web/lib/aur.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index d370788..7e85959 100644 --- a/web/lib/aur.inc.php +++ b/web/lib/aur.inc.php @@ -596,7 +596,9 @@ function comment_by_id($comme

[aur-dev] [PATCH v2 3/3] Convert markdown codeblocks and inline code to HTML

2015-07-11 Thread Marcel Korpel
Only codeblocks delimited with ``` are supported. Signed-off-by: Marcel Korpel --- Changes from v1: * Convert one line at a time * Use preg_replace_callback to convert inline code and URLs * Now URLs within inline code are also converted, unwanted behaviour? * Introduces a global ($md_inline_code

[aur-dev] [PATCH v2 2/3] Use a normal font size for code blocks

2015-07-11 Thread Marcel Korpel
Signed-off-by: Marcel Korpel --- web/html/css/aurweb.css | 1 + 1 file changed, 1 insertion(+) diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css index 6bd7eb3..691a634 100644 --- a/web/html/css/aurweb.css +++ b/web/html/css/aurweb.css @@ -125,6 +125,7 @@ } pre { + font-siz

[aur-dev] [PATCH v2 1/3] Add horizontal scrollbar to code blocks when necessary

2015-07-11 Thread Marcel Korpel
Signed-off-by: Marcel Korpel --- web/html/css/aurweb.css | 4 1 file changed, 4 insertions(+) diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css index b33726c..6bd7eb3 100644 --- a/web/html/css/aurweb.css +++ b/web/html/css/aurweb.css @@ -124,6 +124,10 @@ opacity: 1; }

[aur-dev] [PATCH v2 0/3] Add support for markdown code blocks and inline code

2015-07-11 Thread Marcel Korpel
Only a subset of markdown is support, i.e.: ``` code blocks ``` and `inline code`. Marcel Korpel (3): Add horizontal scrollbar to code blocks when necessary Use a normal font size for code blocks Convert markdown codeblocks and inline code to HTML web/html/css/aurweb.css | 5 web/l

Re: [aur-dev] [PATCH 2/4] Add support for markdown inline code

2015-07-11 Thread Lukas Fleischer
On Sat, 11 Jul 2015 at 20:22:00, Marcel Korpel wrote: > Signed-off-by: Marcel Korpel > --- > web/lib/aur.inc.php | 47 ++- > 1 file changed, 38 insertions(+), 9 deletions(-) > [...] > +

[aur-dev] [PATCH v2] Fix issue with ending delimiter of code block

2015-07-11 Thread Marcel Korpel
When a comment ends with ``` without a newline character, the delimiter is not correctly recognized. Fix by adding a newline character. Signed-off-by: Marcel Korpel --- Change since v1: * Fix commit message web/lib/aur.inc.php | 6 ++ 1 file changed, 6 insertions(+) diff --git a/web/lib/au

[aur-dev] [PATCH] Fix issue with ending delimiter of code block

2015-07-11 Thread Marcel Korpel
When a comment and with ``` without a newline character, the delimiter is not correctly recognized. Fix by adding a newline character. Signed-off-by: Marcel Korpel --- web/lib/aur.inc.php | 6 ++ 1 file changed, 6 insertions(+) diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index d0

[aur-dev] [PATCH 0/4] Add support for markdown code blocks and inline code

2015-07-11 Thread Marcel Korpel
Only a subset of markdown is support, i.e.: ``` code blocks ``` and `inline code`. Marcel Korpel (4): Convert markdown codeblocks to HTML code blocks Add support for markdown inline code Add horizontal scrollbar to code blocks when necessary Use a normal font size for code blocks web/h

[aur-dev] [PATCH 2/4] Add support for markdown inline code

2015-07-11 Thread Marcel Korpel
Signed-off-by: Marcel Korpel --- web/lib/aur.inc.php | 47 ++- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index 4b1850f..d0c8c98 100644 --- a/web/lib/aur.inc.php +++ b/web/lib/aur.inc.php @@

[aur-dev] [PATCH 1/4] Convert markdown codeblocks to HTML code blocks

2015-07-11 Thread Marcel Korpel
Only codeblocks delimited with ``` are supported. Signed-off-by: Marcel Korpel --- web/lib/aur.inc.php | 49 +++-- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index 411d5ee..4b1850f 100644 -

[aur-dev] [PATCH 3/4] Add horizontal scrollbar to code blocks when necessary

2015-07-11 Thread Marcel Korpel
Signed-off-by: Marcel Korpel --- web/html/css/aurweb.css | 4 1 file changed, 4 insertions(+) diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css index b33726c..6bd7eb3 100644 --- a/web/html/css/aurweb.css +++ b/web/html/css/aurweb.css @@ -124,6 +124,10 @@ opacity: 1; }

[aur-dev] [PATCH 4/4] Use a normal font size for code blocks

2015-07-11 Thread Marcel Korpel
Signed-off-by: Marcel Korpel --- web/html/css/aurweb.css | 1 + 1 file changed, 1 insertion(+) diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css index 6bd7eb3..691a634 100644 --- a/web/html/css/aurweb.css +++ b/web/html/css/aurweb.css @@ -125,6 +125,7 @@ } pre { + font-siz

[aur-dev] [PATCH 1/3] Use username from the database if one is provided by the user

2015-07-11 Thread Marcel Korpel
This fixes a bug where the new user name input by the user was invalid, causing the account deletion link and the form action to be wrong. Signed-off-by: Marcel Korpel --- web/html/account.php | 2 +- web/lib/acctfuncs.inc.php | 29 ++--- web/templ

[aur-dev] [PATCH 3/3] Only output page header after account has been modified

2015-07-11 Thread Marcel Korpel
When a user account is modified, the 'My Account' link should contain the new username, otherwise clicking it directly after editing a username will result in a 404. Signed-off-by: Marcel Korpel --- web/html/account.php | 12 +--- web/html/register.php | 8 +++- web/lib/acc

[aur-dev] [PATCH 2/3] Surround message within tags

2015-07-11 Thread Marcel Korpel
Signed-off-by: Marcel Korpel --- web/html/register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/html/register.php b/web/html/register.php index 014d802..cb3e8dd 100644 --- a/web/html/register.php +++ b/web/html/register.php @@ -25,7 +25,7 @@ if (in_request("Action")