Skip to content

Commit

Permalink
Merge pull request #15 from jbrea/master
Browse files Browse the repository at this point in the history
make relocatable
  • Loading branch information
ScottPJones authored Jul 9, 2024
2 parents c92ff86 + 00a1ef5 commit 0aa770e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
16 changes: 9 additions & 7 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name = "HTML_Entities"
desc = "Entities from HTML data tables"
authors = ["ScottPJones <[email protected]>"]
uuid = "7693890a-d069-55fe-a829-b4a6d304f0ee"
keywords = ["Entities", "HTML"]
license = "MIT"
uuid = "7693890a-d069-55fe-a829-b4a6d304f0ee"
desc = "Entities from HTML data tables"
authors = ["ScottPJones <[email protected]>"]
version = "1.0.1"

[deps]
RelocatableFolders = "05181044-ff0b-4ac5-8273-598c1e38db00"
StrTables = "9700d1a9-a7c8-5760-9816-a99fda30bb8f"

[compat]
RelocatableFolders = "1"
StrTables = "1"
julia = "1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]

[compat]
julia = "1"
StrTables = "1"
7 changes: 4 additions & 3 deletions src/HTML_Entities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ __precompile__()
* completions(str)
"""
module HTML_Entities
using StrTables
using StrTables, RelocatableFolders

VER = UInt32(1)

Expand All @@ -28,9 +28,10 @@ struct HTML_Table{T} <: AbstractEntityTable
ind2c::Vector{UInt16}
end

const DATA_PATH = @path joinpath(@__DIR__, "../data", "html.dat")

function __init__()
global default =
HTML_Table(StrTables.load(joinpath(@__DIR__, "../data", "html.dat"))...)
global default = HTML_Table(StrTables.load(DATA_PATH)...)
nothing
end
end # module HTML_Entities

0 comments on commit 0aa770e

Please sign in to comment.