Closed anurag3301 closed 3 years ago
Which extension is that (grepper)?
In any case, this issue should be filed with the browser extension https://github.com/jmerle/competitive-companion. This plugin simply writes the output of the extension to files
If the extension author refuses to fix this (because you are using another extension), I'll try to fix this on my end
Sure, I think you can just check for that line and remove that completely. And you can give the user option to turn on or off this feature
I think you can just check for that line and remove that completely.
The output of the extension is still "wrong" though
Until the extension is fixed you can change https://github.com/p00f/cphelper.nvim/blob/90b63f8a2557c39702b63c240188f12dcfe3ef54/lua/cphelper/prepare.lua#L25-L28 to
for i, test in pairs(tests) do
local input = test["input"]
input = string.gsub(input, "\n<div class .....>", "")
local output = test["output"]
output = string.gsub(output, "\n<div class .....>", "")
problem_dir:joinpath("input" .. i):write(input, "w")
problem_dir:joinpath("output" .. i):write(output, "w")
end
Got it, Thanks, buddy.
I fixed the issue in Competitive Companion 2.25.6 which has just gone live. Your browser should auto-update the extension within 24 hours.
The plugin reads the Grepper extension's HTML code and add that to input and output
https://user-images.githubusercontent.com/52702259/127300748-87b5adc7-2286-488e-b5b0-b6d0136fcc78.mp4