From ef3a6e728a155f09624b8daa54385193e2efdcac Mon Sep 17 00:00:00 2001 From: Lucas Scharenbroch Date: Thu, 2 May 2024 12:42:39 -0500 Subject: [PATCH] Fix markdown table bug with pipe char ('|') (#19) --- who/make_who.py | 4 +++- who/who.markdown | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/who/make_who.py b/who/make_who.py index d18e6cf..a331009 100755 --- a/who/make_who.py +++ b/who/make_who.py @@ -53,7 +53,9 @@ def by_date(data_name, user): misc = user.get('misc', '') row_entry = '\n| `%s` | %s | %s | %s | %s | %s | %s | %s |' - row_entry %= (username, name, start, end, coord_emoji, jobs, link, misc) + cols = (username, name, start, end, coord_emoji, jobs, link, misc) + cols = tuple(c.replace('|', '\|') for c in cols) + row_entry %= cols markdown_file.write(row_entry) diff --git a/who/who.markdown b/who/who.markdown index 252c25a..1017350 100644 --- a/who/who.markdown +++ b/who/who.markdown @@ -123,9 +123,9 @@ | `reednel` | Reed Nelson | Fall 2020 | Spring 2023 | :white_check_mark: | Infinite Campus | https://reednel.com | | | `winans` | Nick Winans | Spring 2021 | Spring 2023 | :white_check_mark: | Roblox, Keyboard Guy | https://nick.winans.io | Don't go to the UPL at 3am | | `wallen` | Ben Wallen | Fall 2021 | Spring 2024 | :white_check_mark: | Cigna, Mastercard, Netflix | https://www.linkedin.com/in/wallenben/ | | -| `jasmith55` | Jake Smith | Fall 2023 | Spring 2024 | :x: | SWE Intern @ Abbvie, DSSD | Database Management Intern @ Quantum Real Estate Advisors | https://www.linkedin.com/in/jasmith55/ | WAGMI | +| `jasmith55` | Jake Smith | Fall 2023 | Spring 2024 | :x: | SWE Intern @ Abbvie, DSSD \| Database Management Intern @ Quantum Real Estate Advisors | https://www.linkedin.com/in/jasmith55/ | WAGMI | | `mxudev` | Jerry Xu | Fall 2023 | Spring 2024 | :x: | | jerryxu.io | 💀 | | `scharenbroch` | Lucas Scharenbroch | Fall 2023 | Spring 2024 | :x: | Acuity Insurance | https://scharenbroch.dev | | -| `Mihir-Achyuta` | Mihir Achyuta | Spring 2023 | Spring 2024 | :white_check_mark: | SWE Intern @ Facebook, Rippling, ZipRecruiter | SWE @ ZipRecruiter | mihirachyuta.me | 🛌 | +| `Mihir-Achyuta` | Mihir Achyuta | Spring 2023 | Spring 2024 | :white_check_mark: | SWE Intern @ Facebook, Rippling, ZipRecruiter \| SWE @ ZipRecruiter | mihirachyuta.me | 🛌 | | `davidteather` | David Teather | Fall 2024 | Spring 2024 | :white_check_mark: | Trendpop, Warner Music Group, Collab, CrowdStrike | https://www.linkedin.com/in/davidteather/ | 😎 |